Problem with custom action - 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!

gjandris
Posts: 15
Joined: Tue Jan 12, 2010 8:51 pm

Problem with custom action

We use Install Anywhere for most of our install work, but for the client installer, customers are requesting an msi installer, which Install Anywhere can't do. I had no problem making 95% of it work in Advanced Installer. The only thing I need to figure out is changing a property in a properties file. You can do this easily in Insatll Anywhere, it is a standard post-install action. Not so easy with AI. As part of the install we install a jre. I thhought to use that and wrote some java code to edit the property. Works fine on the command line, I can't get it to work as part of the install, and the log file I know how to generate gives not much info, just that it didn't run. I use a batch file to run the java class. If I use AI variables in the batch files, in other words [APPDIR], will they be translated? So can I change directories to the installation dir and then run the command from there? Is there a way to get more meaningful info into a log file from an installer run? Any help would be appreciated. I am obviously new to Advanced Installer. Thank you in advance.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem with custom action

Hello,

Properties are not evaluated in batch files. You can however pass the properties as batch parameters

Code: Select all

msiexec /i <file.msi> /L*V log.txt
The above is the syntax for creating a verbose log.

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

Return to “Common Problems”