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
- :
- Uregnt!!! Can't Add Registry During Uninstallation...
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
‎Apr 13, 2009
08:36 AM
Uregnt!!! Can't Add Registry During Uninstallation...
Please Tell Me How To Add Resgistry During Uninstallation.........urgently Help Please......
(12) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2009
05:13 AM
What is your project type? is it install script project?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2009
05:56 AM
it's basic msi type
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
05:35 AM
please help.need the solution urgently.........
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
11:20 AM
It is not possible in an MSI based installation to have a component be installed during an uninstall process, which would allow for using the standard MSI registry functionality. Therefore, it will be necessary to use a custom action to create or set any registry data needed during uninstall (the custom action can be conditioned with 'REMOVE="ALL"' to only run it during uninstall).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
09:34 AM
I have used a VBscript in Custom Action which pushes the registry in HKLM during the uninstallation action.This seems to work in XP machines but fails in VISTA,although during uninstallation it is throwing the regedit prompt.I have also tried with Nested MSI and an EXE in the custom actions which also failed in VISTA.So please provide me some alternatives as to how we can push a registry in HKLM during uninstallation breaking the UAC of VISTA .please help urgently.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
02:43 PM
Your custom action needs to be scheduled in the execute sequence between InstallInitialize and InstallFinalize, with an in-script execution setting of "deferred in system context". Any custom action (EXE, VBScript, DLL, etc.) that does not follow this sequencing requirement will not run with elevated privileges and will not be able to write to machine-wide locations in the registry or on the file system.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 27, 2009
06:11 AM
The custom Action is being carried out as the script runs during uninstallation,but again it fails to incorporate the registry in HKLM due to the UAC feature of VISTA.So the problem persists.....please help.....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 28, 2009
12:56 AM
please help urgently.........i need the solution by today badly.........
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2009
09:29 AM
Write the code in a application language.like C#.
create .exe to the c# code.
And call the .exe file in the uninstallaiton time.and keep the .exe in the Support dir location only.
i think this is help to you.
Regards
Reddy
create .exe to the c# code.
And call the .exe file in the uninstallaiton time.and keep the .exe in the Support dir location only.
i think this is help to you.
Regards
Reddy
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2009
09:36 AM
i have tried this also.but it's not working.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2009
07:07 AM
guys please help!!!!!!!!!!!!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2009
05:11 AM
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
'Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Symphony\IMS\WEA"
strValueName = "Eclipse"
strValue = "Installed"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
I added the above code into .vbs file and i created a .bat file ,inside the .bat file i simply kept the .vbs file name .
the both .vbs and .bat file added to the ISM.if you want you can keep these files in INSTALL DIR or SUPPORT location .i KEPT in SUPPORT DIR.
then i written the install script like this .
function MyFunction(hMSI)
STRING szName,szKey;
NUMBER nResult; // To Do: Declare local variables.
begin
szName = SUPPORTDIR^"r.bat";
szKey = "";
MessageBox(szKey,INFORMATION);
nResult = LaunchAppAndWait(szName, szKey, WAIT);
end;
i called this installscript function at sequence--Installation-Execute-AfterRemoveRegistry files in while uninstalling the application.
Install exe condition REMOVE="ALL"
the above process is working fine.and i can able to create the registry entries while uninstallation the application.
Regards
Reddy.Chilakam
strComputer = "."
'Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Symphony\IMS\WEA"
strValueName = "Eclipse"
strValue = "Installed"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
I added the above code into .vbs file and i created a .bat file ,inside the .bat file i simply kept the .vbs file name .
the both .vbs and .bat file added to the ISM.if you want you can keep these files in INSTALL DIR or SUPPORT location .i KEPT in SUPPORT DIR.
then i written the install script like this .
function MyFunction(hMSI)
STRING szName,szKey;
NUMBER nResult; // To Do: Declare local variables.
begin
szName = SUPPORTDIR^"r.bat";
szKey = "";
MessageBox(szKey,INFORMATION);
nResult = LaunchAppAndWait(szName, szKey, WAIT);
end;
i called this installscript function at sequence--Installation-Execute-AfterRemoveRegistry files in while uninstalling the application.
Install exe condition REMOVE="ALL"
the above process is working fine.and i can able to create the registry entries while uninstallation the application.
Regards
Reddy.Chilakam