Try running as local system from the command line with SysInternals PsExec
https://technet.microsoft.com/en-ca/sysinternals/bb897553.aspx

I think it is psexec -S cmd.exe (or powershell depending on your needs).

Then try running heat again and see what permissions issues you are getting.  
Also try looking in other folders for tmp4869.tmp.  Could be a hardcoded path 
somewhere that doesn't evaluate %TEMP% properly.

Stephen Tunney
Nuance Communications, Inc.
Solutions Architect, Imaging Division
Waterloo, Ontario, Canada
stephen.tun...@nuance.com
519-880-7463    Office
NUANCE.COM
The experience speaks for itself (tm)


-----Original Message-----
From: Dan Ports [mailto:d...@intrigma.com] 
Sent: January-30-15 10:10 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problems running heat under LocalSystem service

Hello,

I recently tried setting up a build agent that runs MSBuild to build a simple 
WiX setup package. The build agent runs as a Windows service that runs under 
the LocalSystem account. I consistently received the following
error:

HarvestDirectory:
  ..\..\Tools\WiX\Heat.exe dir ..\..\Build\WiX\Release -cg WebComponents -dr 
INSTALLDIR -ke -scom -sreg -ag -sfrag -out obj\Release\_WebComponents_dir.wxs
heat.exe : error HEAT0001: Could not find file 
'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\tmp4869.tmp'.

When I tried running that command line in a normal interactive session, it 
completed successfully. When I switched the build agent to run under a domain 
user account rather than LocalSystem, the build completed successfully, so it 
seems like there is some kind of problem running the WiX tools under a 
LocalSystem service.

This sounds very much like this issue:
http://wixtoolset.org/issues/4596/

Has anyone else run into this?

Thanks,
Dan


*Dan Ports*
Vice President of Technology, Intrigma Inc.
Medical Staffing Optimization And Scheduling Software
349 5th Avenue, New York, NY 10016
(212) 390-1040 | intrigma.com

The information in this email is confidential and therefore privileged and/or 
protected under law. If you are not the intended recipient, please notify us 
immediately at i...@intrigma.com and delete the original message and any 
attachments.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to