How to make Install STOP on error so I can see it... - 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!

JaedenRuiner
Posts: 12
Joined: Thu Apr 01, 2010 4:12 am

How to make Install STOP on error so I can see it...

Okay,
So I've set a merge module to install a Assembly, which needs to be custom registered.
Search:
Predefined search for RegAsm for version 2.0 framework.
Files and Folders:
Program Files\Common Files\MyCompany - MyDll.Dll

Custom Actions:
Install
Register (PropertySource)
Prperty Name: REGASM_20_PATH
CommandLine: /codebase [MyCompany_DIR][#MyDll.Dll]
ExecuteOptions: Commit

I compile and run it, and the RegAsm comes up with an error, but the command window disappears before I can see what the error is. How do I halt it at the error so i know how i'm supposed to format the execution of the Custom Action.
thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to make Install STOP on error so I can see it...

Hi,

You could stop the command window from closing by using a BAT file. However, most likely the error is caused by the custom action command line. A folder reference is resolved to the folder path and a file reference to the file path. So placing a file reference after a folder reference will result in two paths one after another.

A correct command line is:

Code: Select all

/codebase "[MyCompany_DIR]MyDll.Dll"
or

Code: Select all

/codebase "[#MyDll.Dll]"
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JaedenRuiner
Posts: 12
Joined: Thu Apr 01, 2010 4:12 am

Re: How to make Install STOP on error so I can see it...

Yea,
I figured that out by creating a Message Box right before the actual Custom Action execution. From that I saw that the command line was being repeated twice. I had tested it with [#mydll], and with "[MyDir][#MyDll]" but never with the "" around just [#mydll]. Oops. ONce i did that it worked fine.

Thanks
J"SD"a'RR

Return to “Common Problems”