Moving from Wise Script to Advanced installer - 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!

Werner
Posts: 2
Joined: Thu Aug 20, 2009 10:03 am

Moving from Wise Script to Advanced installer

Hello,

I have a lot of Wise WSE Scripts which should be moved to MSI technology;
so I am evaluating Advanced Installer.

Simple installs like in the tutorials are working well.
But my main problems are:
- how can I call custom DLLs (eg. for custom actions like license checking etc.) and get the return values into property values ?
- how can I map "if" - statements in the installation script to appropriate logic in Advanced installer to achieve conditional actions in the installation ?

Is there a white paper which discusses moving from script based installations to MSI / Advanced Installer installations ?

Any hint is highly appreciated.

Werner
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Moving from Wise Script to Advanced installer

Hi,

Thank you for your interest in Advanced Installer.
how can I call custom DLLs (eg. for custom actions like license checking etc.) and get the return values into property values ?
You could use the predefined custom action Call Function From Standard DLL. From the Edit Function dialog you can select the return type of your DLL and then select a property from the Return Property field in which you will store the return value of your DLL.
how can I map "if" - statements in the installation script to appropriate logic in Advanced installer to achieve conditional actions in the installation ?
Could you please give us more details on the conditional statements you are trying to map? An example would be very useful.
Is there a white paper which discusses moving from script based installations to MSI / Advanced Installer installations ?
I'm afraid we do not have available articles on this subject.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Werner
Posts: 2
Joined: Thu Aug 20, 2009 10:03 am

Re: Moving from Wise Script to Advanced installer

One very simple example:

I have a variable "insttyp" for different installation modes of one installation : NEW,UPDATE
and in the script there is a paragraph like this:

if insttyp=NEW
install file x
else
if DisplayMessage "Do you want to install y" is answered with "Yes"
if DLL-Call returns result 1
install file y
else
install file z
end else
end if
end else

Typically there are > 100 ifs in my installations and they can be nested to levels > 5
and conditions in the if statements can consist of results of DLL calls, existence of files oder dirs, values of local installation variables etc.,
so that there are many combinations of cases that can result in one script depending from the actual situation on the user's computer.

I don't know how to map this to the logic of advanced installer.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Moving from Wise Script to Advanced installer

Hello,

An .msi based installer logic works a little bit differently than a script. The if-else statements from your script are implemented in an .msi based installer with the help of Conditions that test values of different installer properties (predefined or user-defined). These conditions can be placed in various locations throughout the install sequence. The properties can be set by different elements like custom actions or the user interface.

The typical "Do you want to install y" prompt is replaced by something we call Features. You can check our tutorial on "Organizing an application into features" to better understand how they work. In short, files, registries and other resources are organized into components, which in turn are organized into features. If you want more control on which files are to be installed and which not, you can place conditions directly on a Component.

Even a script as complex as yours can be translated into an msi installer, with the appropriate knowledge. Simply follow through with our Tutorials, How To's and Q&As and upon completion you will pretty much know everything on how to migrate your entire script.

For additional questions you may have, do not hesitate to contact us for support.

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

Return to “Common Problems”