cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
deepak407
Level 5

Install & Uninstall

Hi

Do we have any Built in Install And Uninstall functions (Like OnBegin & OnEnd )?

When I am using OnBegin Function ,it is called at the time of installation and UnInstillation.

Can anybody provide an example?

List of built in functions in IS 2010?
Labels (1)
0 Kudos
(3) Replies
DebbieL
Level 17

In InstallScript, the MAINTENANCE variable is FALSE for a first-time installation, and TRUE for maintenance mode or uninstallation. Therefore, you can use an if statement like the following for any code you want to run only for a first-time installation.

if (!MAINTENANCE) then 
// code to run for first-time installation
endif;

You can use that sort of code in event-driven InstallScript code of InstallScript and InstallScript MSI projects.

I hope that helps.
0 Kudos
deepak407
Level 5

this is helpful.
0 Kudos
MrTree
Level 6

Why don't you use


OnFirstUIBefore
OnMaintUIBefore

OnFirstUIAfter
OnMaintUIAfter
0 Kudos