This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to cleanup actions in Installscript project ??
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 11, 2010
02:10 AM
How to cleanup actions in Installscript project ??
Hi,
I'm using Installshield professional edition and using Installscript project(not Installscript MSI project) for my setup, which when buit creates setup.exe and cab-files. Now i have 2 important doubts on my setup,
1) How can I add an entry in Add/Remove programs for this setup ? I didn't find any "Summary Information Stream" table which I found in basic MSI or Installscript MSI project's thru which I can give the name I wish to be displayed n Add/Remove Programs ?
2) On the end of the setup(which just copies couple of directories), I want to remove a dir which is already present in side the setup dir? I tried writing a VBScript which deletes the folder, but I don't know how to call that script at the end of the setup ? I included that vb script under "Behaviour and Logic ->Support Files" and then written a function "OnEnd", and called that vb script inside the onEnd thinking that the function is called at the end of the setup automatically but the function is not at all called .
Please help.
function OnEnd()
STRING sWScript ;
begin
MessageBox("calling Vbscript...",INFORMATION);
FindFile(WINSYSDIR, "WScript.exe", sWScript);
if sWScript != '' then
LaunchAppAndWait(WINSYSDIR ^ "WScript.exe", SUPPORTDIR ^ "del.vbs", WAIT);
endif;
end;
--Sudhakar
I'm using Installshield professional edition and using Installscript project(not Installscript MSI project) for my setup, which when buit creates setup.exe and cab-files. Now i have 2 important doubts on my setup,
1) How can I add an entry in Add/Remove programs for this setup ? I didn't find any "Summary Information Stream" table which I found in basic MSI or Installscript MSI project's thru which I can give the name I wish to be displayed n Add/Remove Programs ?
2) On the end of the setup(which just copies couple of directories), I want to remove a dir which is already present in side the setup dir? I tried writing a VBScript which deletes the folder, but I don't know how to call that script at the end of the setup ? I included that vb script under "Behaviour and Logic ->Support Files" and then written a function "OnEnd", and called that vb script inside the onEnd thinking that the function is called at the end of the setup automatically but the function is not at all called .
Please help.
function OnEnd()
STRING sWScript ;
begin
MessageBox("calling Vbscript...",INFORMATION);
FindFile(WINSYSDIR, "WScript.exe", sWScript);
if sWScript != '' then
LaunchAppAndWait(WINSYSDIR ^ "WScript.exe", SUPPORTDIR ^ "del.vbs", WAIT);
endif;
end;
--Sudhakar
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 12, 2010
04:35 PM
An Add/Remove Programs entry should automatically be created based on the information set in the General Information view for the project. In addition, the OnEnd event should always be called (unless the setup crashed).
Since you aren't seeing either of these occur, are you using a program...endprogram style script? If so, none of the standard script events will be called (including OnEnd) and an Add/Remove Programs entry will not be created (which is normally done in the OnMoveData event). It is recommended that the script be changed to use events instead of the legacy program...endprogram style script.
Since you aren't seeing either of these occur, are you using a program...endprogram style script? If so, none of the standard script events will be called (including OnEnd) and an Add/Remove Programs entry will not be created (which is normally done in the OnMoveData event). It is recommended that the script be changed to use events instead of the legacy program...endprogram style script.