jmedina
Posts: 29
Joined: Fri Nov 21, 2008 9:29 pm

Problem with TEMPFOLDER in C.A.

I have a problen installing on Windows 2008. The project has a principal and an MSM.
The .aip project decompresses an ini file (Extensiones.ini) in the "Temporary" folder.
The MSM has a custom action that receives a temporary path (TempFolder), and uses the ini file. The Action Data for this C.A. is: [TempFolder]Extensiones.ini

When I'm installing, the custom action sends a custom error: "Can't find Extensiones.ini".
If I open the installation's log I can observe that the Principal's TempFolder is different from the MSM's TempFolder.
To extend this I have added an extract of the log:

Property(S): AI_EXTENSIONES.INI = C:\Users\ADMINI~1\AppData\Local\Temp\1\Extensiones.ini
Property(S): TempFolder.DD83EBD6_040B_4B4A_BB1F_A35C2203E18C = C:\Users\ADMINI~1\AppData\Local\Temp\


Extensiones.ini is located in C:\Users\ADMINI~1\AppData\Local\Temp\1\
Why is this happening? :?:
How can I solve this? :?:

Regards!!!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem with TEMPFOLDER in C.A.

Hello,

You must use a temporary file to control where the file is extracted. Set your .ini as a temporary file and extract it in a known location that is accessible to your MSM.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”