Suggestions for handling mis-association on .vbs? - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Suggestions for handling mis-association on .vbs?

In some of our installers we use VBScripts recommended by AI support staff.

In one installation we had a computer that had it's .vbs file association associated with an editor (i.e. Notepad++) so the VB Script didn't run and the install rolled-back quietly.

Any one else had to handle this?

I guess I was thinking of a registry search to make sure the .vbs file association wasn't redirected.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Suggestions for handling mis-association on .vbs?

Hello Scott,

I think this may happen if you are using our "Launch file" predefined custom action to run your VBS file. Can you try to use a "Launch attached file" or "Execute inline script code" custom action to run your VBS and see if this helps?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Suggestions for handling mis-association on .vbs?

Daniel,

It's not that the VBS script doesn't try to run. The problem is Windows has a bad file association for it so it doesn't run Windows Script Host and the custom action triggers a fail.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Suggestions for handling mis-association on .vbs?

Hello Scott,

Have you tried to launch the VBS file using a "Launch attached file" or "Execute inline script code" custom action? Can you confirm that the behavior is the same?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Suggestions for handling mis-association on .vbs?

Daniel,

I will try those when I can. Currently, I'm invoking cscript.exe using "Call Function From Native DLL" CA using your aicustact.dll and CreateExeProcess.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”