Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Using [SETUPEXEDIR]

Hello,

I suspect I 'm missing something quite simple however I have the following problem. I have a prerequisite that takes an ini file that I setup on the Edit Prerequisite dialogue as a command line:

/CONFIGURATIONFILE=[SETUPEXEDIR]ConfigurationFile.ini

However [SETUPEXEDIR] is resolving as the complete path to the install exe not the folder. In this case "F:\AssetManager\AssetManager.exe" so I end up with:

/CONFIGURATIONFILE=F:\AssetManager\AssetManager.exe\ConfigurationFile.ini
but wanted
/CONFIGURATIONFILE=F:\AssetManager\ConfigurationFile.ini


Is there a different property I should be using?

Thanks,
Jonathan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Using [SETUPEXEDIR]

Hi,

Please note that [SETUPEXEDIR] property will resolve to the folder in which the EXE resides, not to the full path. So in your case it will resolve to the following path:

Code: Select all

F:\AssetManager\

and not to:

Code: Select all

 F:\AssetManager\AssetManager.exe\ 
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: Using [SETUPEXEDIR]

Bogdan,

Thanks for the reply. What you said is what I would have expected however it does not appear to be happening as when the prerequisite exe file is run it states cannot find ini file "F:\AssetManager\AssetManager.exeConfigurationFile.ini".

I just tried a run creating a log file and it implies what you said is true which makes the error message even harder to understand. It looks like it is using AI_SETUPEXEPATH instead of SETUPEXEDIR...

Thanks,
Jonathan



:
:
MSI (c) (E8:F8) [13:04:41:296]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (E8:F8) [13:04:41:296]: Transforms are not secure.
MSI (c) (E8:F8) [13:04:41:296]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\package.log'.
MSI (c) (E8:F8) [13:04:41:296]: Command Line: AI_SETUPEXEPATH=F:\AssetManager\AssetManager.exe SETUPEXEDIR=F:\AssetManager\ CURRENTDIRECTORY=F:\AssetManager CLIENTUILEVEL=0 CLIENTPROCESSID=232 CURRENTMEDIAVOLUMELABEL=?
MSI (c) (E8:F8) [13:04:41:296]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{F586CE41-14FB-469C-9C3A-0A9B521ED8D2}'.
MSI (c) (E8:F8) [13:04:41:296]: Product Code passed to Engine.Initialize: ''
MSI (c) (E8:F8) [13:04:41:296]: Product Code from property table before transforms: '{66003F9B-04CF-4207-BF7E-7106FEE25956}'
MSI (c) (E8:F8) [13:04:41:296]: Product Code from property table after transforms: '{66003F9B-04CF-4207-BF7E-7106FEE25956}'
:
:
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: Using [SETUPEXEDIR]

Maybe reading too much into the help files however under Windows Installer Properties is the following statement about SETUPEXEDIR, "Location of the EXE bootstrapper (it is resolved when you launch the installation through the EXE bootstrapper)." This possibly implies that it is not resolved until the MSI is launched through the EXE which would be after the prerequisites have completed?

Jonathan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Using [SETUPEXEDIR]

Hi,

Could please send us the .aip file to support at advancedinstaller dot com so we can investigate this behavior.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: Using [SETUPEXEDIR]

OK, I have sent the AIP file.

Thanks,
Jonthan

Return to “Common Problems”