Reading Text File using VBScript - Advanced Installer Community
tony_s
Posts: 1
Joined: Fri Jul 10, 2015 2:26 pm

Reading Text File using VBScript

Hi
Each of our products when distributed has a unique user number
I would like to write a separate file to the installation CD containing this number. as well as a "standard" Advanced Installer .exe file we will create.

Unless I copy the file into the C:\Windows\SysWOW64 folder the Advanced Installer program will not open the file
Obviously I need to append the folder location of the installation files to the text filename, is there a system variable or VBscript method of finding where the install program was run from?

I do not want to hard-code a CD-drive path as the software may also be downloaded and could be in a "downloads" or "desktop" folder.

I hope this makes sense.

Tony
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading Text File using VBScript

Hi Tony and welcome to Advanced Installer forums,

For this, you can pass the value of the SOURCEDIR property to your custom action. This property stores the location of the MSI file. It is resolved when you launch the MSI package, available throughout the installation process.

You can also take a look on the Options to integrate and debug custom actions custom action which may be useful to you.

Just in case you have encountered or if you will encounter any difficulties in implementing your installation scenarios with Advanced Installer, let us know and we will gladly assist you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”