Temporary Import File Problems - 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!

bryanray
Posts: 3
Joined: Thu May 17, 2012 11:55 pm

Temporary Import File Problems

Here's a quick overview. My Installer is creating a temporary directory in order to run an EXE during setup. Here's the twist. The executable also depends on a .config file that has variables filled out during installation and then is set. All of this works just fine. However ...

When executing the installer, I can clearly see the files get dumped to:

%TEMP%\1\Assemble\Migrate.exe (more files here as well)

This seemed a bit strange to me that the Temp Directory somehow get a "1" sub-directory (see this topic: http://www.advancedinstaller.com/forums ... 502&p=5969). However, on another machine it creates a "2" directory. Not sure what determines that sub-directory name?

Eventually, the installer gets to the point of creating the Imported XML File for the deferred action to execute. However, at this point the Temp Directory switches and the actual configuration file gets created at:

%TEMP%\Assemble\Migrate.exe.config

Whenever my custom action attempts to execute the Migrate.exe file. Obviously, all hell breaks loose, because it doesn't have the appropriate configuration file.

Does anyone have any insight as to what I'm doing wrong? Why does Windows feel the need to create the "1" sub-directory?

Thanks in advanced for any help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Temporary Import File Problems

Hello and welcome to Advanced Installer forums,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bryanray
Posts: 3
Joined: Thu May 17, 2012 11:55 pm

Re: Temporary Import File Problems

Thanks for the welcome.

I sent out the email. Hoping you can find some insight in to the problem.

Thanks!
bryanray
Posts: 3
Joined: Thu May 17, 2012 11:55 pm

Re: Temporary Import File Problems

I just wanted to follow up providing some more information to the public. This seemed like a pretty significant problem that more people might eventually bump in to.

I believe the heart of this problem comes from installation via RDP.

Info 1: http://technet.microsoft.com/en-us/libr ... s.10).aspx
Info 2: http://technet.microsoft.com/en-us/libr ... 55098.aspx

Disabling the "Use temporary folders per session" (screenshot below) option resolves my issue, but does not really provide a valid solution for me.
temporary-folders-per-session.png
temporary-folders-per-session.png (32.15 KiB) Viewed 8054 times
By default, in Windows Remote Desktop Session Configuration. It will use temporary folders per session. This causes the %TEMP% folder to become %TEMP%\<session_id>\ ...

I see a couple of options now:
  1. Is it possible to hard code a "TempFolder" path? I'm assuming this is possible using the TableEditor, but am not entirely sure how.
  2. Possibly have AI enforce that "true" %TEMP% folder? It appears that in my systems Environment Variables that the %TEMP% folder is C:\Users\Administrator\<path>\Temp ... but somewhere something in RDP is overwriting that.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Temporary Import File Problems

Hello Bryan,

I'm afraid we cannot control folders destination path from "Files and Folders" view. Windows Installer resolves, at runtime, folders path from "Files and Folders" page.

You could try to set the folder destination path of your files using a custom action. Please take a look on our "Install files in a custom folder" article. I've created and attached a sample for you which install a file in temporary folder for a per-machine installation (C:\Windows\Temp).
Sample.aip
(9.67 KiB) Downloaded 398 times

If you have any questions let me know.

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

Return to “Common Problems”