Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Uninstall and reinstall


1 reply to this topic

ranjit

ranjit
  • Members
  • 19 posts

Posted 24 July 2003 - 17:19

HI all,
Is there any way of doing an uninstall first if exists and then install the new one in one setup.exe using IS dev 7.x ?
right now I am doing something like this....
if(!MAINTENANCE) then
//First time install.
// setup default status
Enable(STATUSEX);
return 0;
else
//Reinstall--- uninstall first and install.
// Enable(STATUSEX);
//REMOVE = "ALL";
FeatureRemoveAll();
SetStatusWindow(100, "");
Enable(STATUSEX);
StatusUpdate(ON, 0);
nResult=FeatureMoveData (MEDIA, nvDisk, 0);
//FeatureError function.
HandleFeatureError (nResult);

endif;
but only one thing happens here either one condition is satisfied here, If first time then it install else it uninstall but does not do the reinstall.
Any ideas will be appreciated and thank you

Ranjit

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 25 July 2003 - 07:19

Why dont you try using a major upgrade?