PDA

Click to See Complete Forum and Search --> : [Help]How do I modify the uninstall exe?


purplekitty
May 15th, 2008, 06:33 AM
I want to write some entries to the registry when an application I’m distributing is installed. That I have managed to do fine by editing setup1.exe.
However I would also like these registry entries to be removed when the program is uninstalled and I’m not sure how to go about this.
Any advice?

Btw new here - hello.

randem
May 15th, 2008, 06:57 AM
Use a different installer...

purplekitty
May 15th, 2008, 07:50 AM
Could you elaborate a bit please?

Fazi
May 15th, 2008, 08:31 AM
Use a different installer...


this mean,
An installer like innosetup has simple codes to remove registry keys while Un-installing.

fro example

[Registry]
Root: HKCU; Subkey: "MyProgram\verion 1.2"; Flags: uninsdeletekey


BTW, purplekitty, Welcome to the forum :wave:

Hack
May 15th, 2008, 08:43 AM
Moved to Application Deployment

purplekitty
May 15th, 2008, 11:09 AM
this mean,
An installer like innosetup has simple codes to remove registry keys while Un-installing.

fro example

[Registry]
Root: HKCU; Subkey: "MyProgram\verion 1.2"; Flags: uninsdeletekey


BTW, purplekitty, Welcome to the forum :wave:

Thanks for the help and the welcome :)

I'll have a look at innosetup and see how I get on.

Fazi
May 15th, 2008, 11:17 AM
BTW,
You can also try this tool. An innosetup support tool i find it usufull. (dont estimate by it's skinn color :D , i use the old version)
http://www.***********/**********.html

randem
May 15th, 2008, 04:26 PM
Fazi,

Why don't you use the current version?

dilettante
May 15th, 2008, 08:38 PM
Are you sure you want to do this at all?

Microsoft has recanted its position on using the registry for application settings in most scenarios. Beginning with Vista Microsoft encourages moving away from this practice.

Registry Virtualization in Windows Vista (http://msdn.microsoft.com/en-us/library/bb530198.aspx#vistaregvirt_topic8)
Virtualization Recommendations

Virtualization is intended only to assist in application compatibility with existing programs. Applications designed for Windows Vista should not perform writes to sensitive system areas, nor should they rely on virtualization to provide redress for incorrect application behavior. When updating existing code to run on Windows Vista, developers should ensure that, during run-time, applications only store data in per-user locations or in computer locations within %alluserprofile% that have access control list (ACL) settings properly set. Refer the UAC Developer Guide for more guidelines on developing applications for Windows Vista.

randem
May 15th, 2008, 11:18 PM
Microsoft has recanted its position on using the registry for application settings in most scenarios. Beginning with Vista Microsoft encourages moving away from this practice.And people said I was crazy when I said don't use the registry that much use ini files...

dilettante
May 16th, 2008, 12:12 AM
You're simply ahead of your time.

Fazi
May 16th, 2008, 12:22 AM
Fazi,

Why don't you use the current version?

Randem,
recently i did not had any installation builds
Mostly working on webbased projects these days :)

randem
May 16th, 2008, 12:24 AM
Ah, Ok because the skins have changed drastically lately...

Of course you can choose your own color...

Fazi
May 16th, 2008, 12:25 AM
Thats Cool !