Failed to create temp directory - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bcarswell
Posts: 6
Joined: Thu Sep 20, 2012 4:40 am

Failed to create temp directory

Hi,

We are using Advanced installer 7.5.2 to build our installer and are getting a strange problem on a particular customer's computer where the installation fails to create a temporary directory. Their PC is Windows 7, and we suspect is using French regional settings. The relevant lines from the log file (full file attached) are

Code: Select all

MSI (c) (70:50) [11:13:48:999]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\MSIFC7B.tmp, Entrypoint: PromptToRemoveOldVersions
MSI (c) (70!1C) [11:13:49:155]: Creating MSIHANDLE (400) of type 790531 for thread 540
SFXCA: Failed to create temp directory. Error code 3
MSI (c) (70:C0) [11:13:49:155]: Creating MSIHANDLE (401) of type 790531 for thread 5824
MSI (c) (70:C0) [11:13:49:155]: Closing MSIHANDLE (401) of type 790531 for thread 5824
MSI (c) (70!1C) [11:13:49:155]: Closing MSIHANDLE (400) of type 790531 for thread 540
CustomAction RemoveOldVersions returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
The installer is being run as Administrator on the PC. The error code of 3 presumably corresponds to the WIN32 error ERROR_PATH_NOT_FOUND when the installer tries to create a folder under C:\Users\ADMINI~1\AppData\Local\Temp\

Any help or direction on this would be appreciated. We are stumped as to what we should look into next.

Thanks,
Brett
Attachments
idiscover.5.2.2.173.log
(255.91 KiB) Downloaded 292 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Failed to create temp directory

Hi Brett and welcome to Advanced Installer forums,

This could happen on Windows 7 because your custom action doesn't have enough rights to execute properly. You can try to set "RemoveOldVersions" with the "Deferred, with no impersonation" execution option and see the outcome.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bcarswell
Posts: 6
Joined: Thu Sep 20, 2012 4:40 am

Re: Failed to create temp directory

Hi Mihai,

Thanks for the response - I think it is pointing us in the right direction. Unfortunately, this custom action is being run as part of CostFinalize so we don't have the 'no impersonation' options available to us. We will need to work out another approach for running this.

Thanks,
Brett
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Failed to create temp directory

Hi Brett and you're welcome :idea:

Indeed the "no impersonation" options are available only between InstallInitialize and InstallFinalize standard actions. Depending on your custom action's functionality maybe you can find a better scheduling time for it.

I've no idea what your custom action does but from its name maybe you should also keep in mind that in an upgrade process, the Windows Installer engine automatically uninstalls older versions during Preparing -> RemoveExistingProducts standard action.

Let us know if you have other questions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”