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!

Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

Actions based on return values

Okay, I've looked around for this, but I can't seem to find the solution, so apologies in advance if this is a repeat.

I have a custom action (launch the uninstall of a previous version of my app that used a different installer) and I need that action to complete successfully for my app to install properly. I don't see anything that strikes me as a straightforward way to react to the return code from the uninstall. Alternatively, there is a registry entry (where I'm getting the uninstall command in the first place) that I can check for, but I don't know how to update registry reads once I'm in the midst of the dialogs. Gigi, sorry to keep you busy with little things like this, but I really can't figure it out.

Thanks,
Jebrew
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

While I'm at it

While I'm posting, I might as well ask all my questions. I haven't taken the time to look for this one, but is there a way to create plain text files with information gathered from the install (i.e. user enters information and I put it into a config file in a subdirectory). Also, can I read from that file from within the installer or do I need to use an outside app to gather the information.

The reason I ask is that my product contains information in a plain text file that we would like to preserve from install to install (this will be our first with AI), but that information must be presented to the user during installation.

Oh, and how do I get a splash screen in the installer, I'd like to do one with translucency using a png file to get a more professional looking installation (see the splash screen for Acrobat if you don't know what I'm talking about).

Thanks,
Jebrew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jebrew,
I have a custom action (launch the uninstall of a previous version of my app that used a different installer) and I need that action to complete successfully for my app to install properly.
Please see this for a similar approach (we think to make an automated process for this is a future version of AI):
http://www.advancedinstaller.com/forums ... ht=upgrade
i.e. user enters information and I put it into a config file in a subdirectory
You can create a configuration file in the "Files and Folder" page. To do that choose "New INI file" from the context menu. In this configuration file you can write properties (USERNAME,ProductName,etc) that will be replaced with their values when the file will be created. Read more about INI files here:
http://www.advancedinstaller.com/user-g ... files.html
The reason I ask is that my product contains information in a plain text file that we would like to preserve from install to install (this will be our first with AI), but that information must be presented to the user during installation.
On how to prevent a file from being replaced by an upgrade please see:
http://www.advancedinstaller.com/user-g ... -file.html
Oh, and how do I get a splash screen in the installer, I'd like to do one with translucency using a png file to get a more professional looking installation (see the splash screen for Acrobat if you don't know what I'm talking about).
Advanced Installer does not support this feature yet. We have it on our TODO list (I don't have an ETA for it) and will be available in a future version of AI.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

Thanks, but

Thanks for the reply, there's just one question I guess I didn't make clear (after reading it, it is kinda not well written). When I say that I want to keep the configuration between installations, the user needs to be presented with the information that was inside the configuration and be able to edit it. In our current installations this is done with a custom dialog page that asks the user for a server name and a port on which to connect. The intent is that the user can rerun the installation and simply modify this information instead of manually modifying the configuration file. Is there an easy way to read information in from a file that may or may not be installed on the users system?
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

Got it

Okay, got it, I just needed to read through some of the MSI documentation. That helps a lot when making your custom actions. If anyone gets here and doesn't know what do to, go read that documentation. MSDN has some okay stuff, but searching Google works better.

Jebrew

Return to “Common Problems”