I am a new user for installshield 2008 version,and i was currently deal with installscript project.So, now my problem is how to uninstall features seperately.
1)At first, i got 2 selections ... Full installation and partially installation ...
2)For full installation .. it will included feature A and feature B ...
3)For partially installation .. it will included feature A only or Feature B only .. .
4)So, if i install full installation type .. mean i will have feature A and feature B ...
5)So,now ... i install full installation type ...
6)After i install .. .. i run uninstallation .. ...
7)Now .. i create 2 check box inside the dialog ... . .. one for feature A and one for feature B
8)So .... i set the default condition to check both checkbox if i have done full installation type ...
9)But .... i can change the selection for the check box .. .
10)i can choose to check feature A only ... or check feature B only ....
11)So .. if i check feature A only ... then feature B will be keep inside the computer
feature A will be uninstall later
12)If i check feature B only.... then feature A will be keep inside the computer ....
feature B will be uninstall later ....
13)So .. now my PROBLEM is .. . even i check feature A only ... my uninstallation will still uninstallation feature A and feature B together .. ....
14)If ..i check feature B only ... my uninstallation will uninstall feature A and feature B together .....
15)Up to this stage .. ... i have done some scripting to solve my problem ....
i try to do some configuration under ONMAINTUIBEFORE () function ... .
16)inside this ONMAINTUIBEFORE () it included one 2 important function ... one is beforeuninstall (self declare function, not build in ) and one is componentremoveallinmedia() ....
17)inside beforeunintall() function .. i have to try configure so that i can make selection on the feature ....
18) What i have done is used featureselectitem() to select feature A or feature B
FeatureSelectItem(MEDIA,FEATURE A,TRUE)
FeatureSelectItem(MEDIA,FEATURE B,FALSE)
or
FeatureSelectItem(MEDIA,FEATURE A,FALSE)
FeatureSelectItem(MEDIA,FEATURE B,TRUE)
i set the condition like shown as above ..... but it still uninstall everything ...
19)So , i thought is the componentremoveallinmedia() function which make me uninstall all my feature ... but if i discard out the componentremoveallinmedia() function ... then my uninstallation will failed .....
20)Can anyone help me to solve this problem . . for example .. tell me which function to try .. . which part i have done wrong .. . .. a script example will be most welcome .. . thanks a lot ......
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.
How to uninstall features seperately
Started by
shaojake
, Jan 07 2008 04:55
1 reply to this topic
Posted 08 January 2008 - 17:38
Instead of clicking "Remove", click "Modify" and unselect the approrpiate featres in the treeview dialog.
Stefan Krüger
InstallSite.org twitter facebook