R1ussell
Posts: 7
Joined: Fri Aug 14, 2009 2:51 pm

Viewer.exe leaves System32 Folder open

I've had to include some batch files in my installers to achieve the results I desire. The only way I have found to call these batch files, passing them some parameters from property values set by the installer, is by using the 'Open File or Open Url' predefined custom action which uses the Viewer.exe program. This all works fine and my batch files execute without problem, however when executing files this way Explorer opens up at the System32 directory (probably because this is where the command prompt is) and it stays open. Is there any way to prevent this, or any alternative way of doing this that doesn't open Explorer because the end result looks incredibly unprofessional? Thanks in advance for any feedback.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Viewer.exe leaves System32 Folder open

Hello,

Please make sure that in your Custom Action settings you have properly enclosed the path to your .bat file within quotes like in the following example:

Code: Select all

"[SourceDir]yourbatch.bat"
Not doing so will result in execution of two separate commands if the path contains spaces. The first command would indicate the opening of a folder, which is what you are experiencing now.
If you still can not resolve the issue, please send us your .aip project file (or a stripped down version that accurately reproduces the behavior) to support at advancedinstaller dot com.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”