TheSaint
Posts: 4
Joined: Tue Dec 26, 2006 11:27 pm

using .vbs in later stages of install

Hi I am tearing my hair out with this one. Wrote a vbs function to save a file and attched it in InstallUISequence->Begin - that works fine.

Then I wrote another small function to restore the file after installation and attached it at various places like Install, Commit, etc, always fails with a message of: "There is a problem with this windows installer package. a program required for the install to complete could not be run..."

It then rolls back the installation. Even if I entirely empty the function of code it still fails.

No further information is available. I can find no log or record of what occured or why.

If I moved that restore function back to InstallUISequence->Begin after the other one that works its fine, but any attempt to use it later on where needed fails.
TheSaint
Posts: 4
Joined: Tue Dec 26, 2006 11:27 pm

By the way this fails even for a trivial inline vbs note the attached screenshot which causes the runtime failure:

Image
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this. Please try to reproduce this on other computer and tell me if you get the same behavior.

However we have a tutorial about how to backup and restore a file, please see:
http://www.advancedinstaller.com/user-g ... le-ca.html

If the problem persist please sent a small test case that reproduce this issue to support at advancedinstaller dot com so we can take a look.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”