aldenlong
Posts: 23
Joined: Mon Oct 01, 2012 8:58 pm

Default folder during custom action execution

I had an installation failure on one computer, that was not repeatible on another. I have a custom action executable file that is executed before files are copied to the target computer. Part of what this executable needs to do is to create a temporary file, and that attempt resulted in a system error (2 file not found). My diagnosis determined that the file is created in the default folder, and on the machine where the installation failed that turned out to be Windows\System32, where file creation is not permitted (Windows 7 32-bit). I have a solution in mind (specifying a specific path rather than using the default), but I really thought the default folder would be the one where the setup executable resided and the log file is written. Would you please comment on this? (File name is SAVE_OLD.EXE).
Attachments
E220-E500 Software v15.00.03.aip
(51.02 KiB) Downloaded 388 times
Install.log
(421.43 KiB) Downloaded 342 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Default folder during custom action execution

Hello,

I'm not sure why this happens. However, if your custom action creates temporary files, then it is recommended to use the temp folder location. So, you can change the related temporary file path (within your custom action) to temp folder and see if the behavior still persist.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”