Custom Action VBScript Support File Location - 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!

invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Custom Action VBScript Support File Location

I've added the VBScript create.vbs to my Custom Actions -> Install Sequence -> InstallExecuteSequence. In create.vbs I want to load templates from XML files. Where can I put the XML files so they're in the same location as create.vbs at install time so they can be easily read by create.vbs.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action VBScript Support File Location

Hello,

Please note that if you add the "create.vbs" as an attached custom action, it will be resolved as a binary value inside the package.
To solve this you will need to add your XML as a temporary file in the "Windows Volume\Temporary" folder on the "Files and Folders" page.
This way you can redirect your "create.vbs" to always look in the Temp folder of the OS for your file.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Custom Action VBScript Support File Location

I got this working but was concerned about the exposure of having the XML file in the temp directory (if even temporarily during the install). I don't want users looking at those files.

I suppose the same could be said about the Custom Action VBscript but I haven't been able to find it during the install process like I am able to find the XML file in the temp directory.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action VBScript Support File Location

Hello,

If you are concerned about security issues you can either change the extension of the XML file, choose a "safer" location for your temporary XML(other than the Temp folder) or in a more complex approach you can use a suitable encryption method(e.g. steganography, etc).

Regarding the Custom Action VBscript, it is also extracted during the installation by Windows Installer for a short period of time. If you are concerned by this as well you can use a DLL instead.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”