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 not show uninstall item in Add/Remove program on Control Panel?
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
‎Jun 16, 2008
09:35 PM
How to not show uninstall item in Add/Remove program on Control Panel?
Dear Sir:
I use the installshield 2008 to create one package to install.
My project uses InstallScript format to create.
Now I hope after installing my package, it shows nothing in
the Add/Remove program on Control Panel.
Please teach me how do i set or code to reach this goal?
Thanks.
I use the installshield 2008 to create one package to install.
My project uses InstallScript format to create.
Now I hope after installing my package, it shows nothing in
the Add/Remove program on Control Panel.
Please teach me how do i set or code to reach this goal?
Thanks.
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 16, 2008
09:44 PM
For an InstallScript project, perhaps look up the help topic "ADDREMOVE_SYSTEMCOMPONENT".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2008
03:38 AM
RobertDickau wrote:
For an InstallScript project, perhaps look up the help topic "ADDREMOVE_SYSTEMCOMPONENT".
Dear Sir:
Very thanks for your information.
I found the ADDREMOVE_SYSTEMCOMPONENT and know it needs to
use "MaintenanceStart" to enable.
But i don't know how to code this function that i want. All uninstall
information created by installshield, and how to code it?Could you give
me a sample code?
Thanks for your teaching.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2008
01:24 PM
I did something similar and got the info from the online somewhere. Hope this will help you
function OnFirstUIAfter()
STRING szTitle, szMsg1, szMsg2, szOption1, szOption2, svResult, nCopyResult, szFrom, szTo, szUsersDir;
NUMBER bOpt1, bOpt2, bDoCopy, bDirOK, bError;
begin
Disable(STATUSEX);
bOpt1 = FALSE;
bOpt2 = FALSE;
szMsg1 = SdLoadString(IFX_SDFINISH_MSG1);
SdFinishEx(szTitle, szMsg1, szMsg2, szOption1, szOption2, bOpt1, bOpt2);
HideApplicationToAddRemoveProgram();
end;
function HideApplicationToAddRemoveProgram()
STRING strRegKey, strStringName, strStringData;
NUMBER nStringFormat, nSize;
begin
// Activate Uninstallation information.
Enable(LOGGING);
// Select HKLM
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
// Set up registry to hide application (SystemComponent == 1)
strRegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + UNINSTALLKEY;
strStringName = "SystemComponent";
strStringData = "1"; // 1: Hide application
// 0: Dispaly application
nStringFormat = REGDB_NUMBER;
nSize = -1;
RegDBSetKeyValueEx (strRegKey, strStringName, nStringFormat, strStringData, nSize);
end;
function OnFirstUIAfter()
STRING szTitle, szMsg1, szMsg2, szOption1, szOption2, svResult, nCopyResult, szFrom, szTo, szUsersDir;
NUMBER bOpt1, bOpt2, bDoCopy, bDirOK, bError;
begin
Disable(STATUSEX);
bOpt1 = FALSE;
bOpt2 = FALSE;
szMsg1 = SdLoadString(IFX_SDFINISH_MSG1);
SdFinishEx(szTitle, szMsg1, szMsg2, szOption1, szOption2, bOpt1, bOpt2);
HideApplicationToAddRemoveProgram();
end;
function HideApplicationToAddRemoveProgram()
STRING strRegKey, strStringName, strStringData;
NUMBER nStringFormat, nSize;
begin
// Activate Uninstallation information.
Enable(LOGGING);
// Select HKLM
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
// Set up registry to hide application (SystemComponent == 1)
strRegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + UNINSTALLKEY;
strStringName = "SystemComponent";
strStringData = "1"; // 1: Hide application
// 0: Dispaly application
nStringFormat = REGDB_NUMBER;
nSize = -1;
RegDBSetKeyValueEx (strRegKey, strStringName, nStringFormat, strStringData, nSize);
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
08:18 AM
Perhaps you can just put ADDREMOVE_SYSTEMCOMPONENT=TRUE; somewhere early in your script?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
08:33 AM
Also, u can use this property 'ARPSYSTEMCOMPONENT'
http://msdn.microsoft.com/en-us/library/aa367750(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa367750(VS.85).aspx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
09:11 AM
Quite right, the ARPSYSTEMCOMPONENT property will work for MSI projects; for pure InstallScript, however, you'll want to use the similarly named ADDREMOVE_SYSTEMCOMPONENT variable.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
09:20 AM
O!!! Sorry, I missed the point that it is an Installscript Project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
03:33 PM
^^^This is a better solution, I need to try this.
Thanks,
-Thanh
Thanks,
-Thanh
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
10:54 PM
RobertDickau wrote:
Perhaps you can just put ADDREMOVE_SYSTEMCOMPONENT=TRUE; somewhere early in your script?
Dear Robert:
I put the "ADDREMOVE_SYSTEMCOMPONENT=TRUE" in the
function:OnBegin() and work successfully.
Thanks for your great help.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)