jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Using Custom Inline Script

I am trying to run a vbscript just to "touch" files after installation.
I don't have a Wscript object in my script, that I read in this same forum, is a problem with windows installer.
Just in case can you tell me if I am doing this right?

The custom script is in the Install Execution Stage right after Add Resources, set to run immediately with Install ticked in the Execution Stage Condition.
I added a tick in the 64-bit checkbox for 64-bit installers. Action Data is blank. I get the attached error at the end of the installation process. Can you help me out? Thanks in advance.
My license is professional. I am using version 11.7.1.

Additionally, I have Scripting.FileSystemObject, Shell.Application objects and using Session.Property("APPDIR").
Attachments
scripterror.png
scripterror.png (20.49 KiB) Viewed 3176 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using Custom Inline Script

Hello Jonathan,

This may happens if the resources files are not coppied yet on the target machine.
Can you please try to add your custom action between the InstallExecute and InstallFinalize standard actions?
The standard actions used by Advanced Installer can be revealed using the "Show Standard Action" button on the toolbar of the "Custom Actions" page.

Please let me know if the behavior still persist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Re: Using Custom Inline Script

Thanks that worked, you're the best!
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using Custom Inline Script

You're welcome Jonathan,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Common Problems”