Path to installer file with SOURCEDIR in vbscript - Advanced Installer Community
pava
Posts: 2
Joined: Mon Dec 08, 2014 1:15 pm

Path to installer file with SOURCEDIR in vbscript

Hi,

I have a problem with the SOURCEDIR paramter. I want to launch a vbscript after the installation. The script needs the path to the installer file/medium. For that reason I have tried out to retrieve the path with the SOURCEDIR parameter (in my script: Session.Property("SOURCEDIR")), but it returns a path to

Code: Select all

C:\Users\[MyUsername]\AppData\Roaming\[Company]\[Program]
, which is not the location of my installation file. What I want is a path to the original installation file (e.g. something like

Code: Select all

C:\Users\[MyUsername]\Desktop\theSetup.msi
).

I'm currently using the AInstaller Version 9.6.1 and would be very thankful for any advice or help.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Path to installer file with SOURCEDIR in vbscript

Hi,

Please note that if your package type is an EXE with resources inside, the MSI file is extracted to that location during the installation. To retrieve the path to the EXE file, you can use the [AI_SETUPEXEPATH] property.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pava
Posts: 2
Joined: Mon Dec 08, 2014 1:15 pm

Re: Path to installer file with SOURCEDIR in vbscript

Thank you. I come also to this conclusion by try and error... Where could I have found that documented?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Path to installer file with SOURCEDIR in vbscript

You're welcome. I'm glad you solved the problem.

Indeed, this property is not documented anywhere, but I will add this on our TODO list and it will be documented as soon as possible.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”