Archive: Write uninstall file


Write uninstall file
Hi, All
Is there any way to write uninstall file separately when build install file? We need setup.exe and uninstall.exe files.


You can create another installer which will actually uninstall. You can also make it a dummy installer that just extracts the uninstaller to $EXEDIR and execute the dummy installer directly after creating it. Another possibility is a switch for the real uninstaller that makes it silently extract the uninstaller.


It's easy way copy&paste unninstall instruction in another file and build it. But when I fix unininstall section in first file I must do the same in second file. Inconveniently :(


As I understand, WriteUninstall command make uninstall exe file, but setup builder pack it and delete from disk. Can I save this file on disk?


Then use one of the other two methods, maintain the uninstaller code in the other file, or have one script which can generate both the installer and the uninstaller depending on a define.


Originally posted by romko2005
As I understand, WriteUninstall command make uninstall exe file, but setup builder pack it and delete from disk. Can I save this file on disk?
WriteUninstaller doesn't create the uninstaller, pack it and then delete it. The uninstaller is created only on runtime.

BTW, what happened to the old romko user? Did you lose the password? I can reset it for you.


Ok. Set !define is preferably, than change 2 files


Originally posted by kichik
BTW, what happened to the old romko user? Did you lose the password? I can reset it for you.
I changed my email, romko@star-force.com was stollen by spammers :) Can u change my email?

I can. Drop by the IRC channel and we'll talk about it.


Originally posted by kichik
WriteUninstaller doesn't create the uninstaller, pack it and then delete it. The uninstaller is created only on runtime.
I'll post it as suggestion "Make uninstall file on disk for WriteUninstall command" Is it required feature?

Originally posted by kichik
I can. Drop by the IRC channel and we'll talk about it.
I don't use IRC :( May be u iñq, email?

What do you mean by required feature?


Originally posted by kichik
What do you mean by required feature?
Is it nessesary for all users? I don't know...

Originally posted by kichik
I can. Drop by the IRC channel and we'll talk about it.
Can I post new email here http://kichik.dyndns.org/software/feedback.php

I don't think it's necessary for all users. Why would you want to have a separate uninstaller before the user even installed the application?

As for IRC, download a client, or use an online one.


Originally posted by kichik
I don't think it's necessary for all users. Why would you want to have a separate uninstaller before the user even installed the application?

As for IRC, download a client, or use an online one.
Why separate uninstaller...
There are Setup programm Version 1.0, Setup programm Version 2.0 and Upgrade for version 2.0.

Setup 1.0 install uninstall.exe for Version 1
Setup 2.0 install uninstall.exe for Version 2
Upgrade 2.0 for users, who has Version 1 and download upgrade via internet, must REWRITE uninstall.exe for Version 1.0 to Version 2.0

I make Upgrade 2.0 as NSIS installer and need uninstall.exe for Version 2.0 "in raw" :)

Why not have the new uninstaller handle both?


Originally posted by kichik
Why not have the new uninstaller handle both?
Explain. Don't understand..:(

Replace new uninstall section in upgrade file? Duplicate code, again


Have Upgrade 2.0 write a new uninstaller that handles uninstalling both 2.0 and 1.0.


Originally posted by kichik
Have Upgrade 2.0 write a new uninstaller that handles uninstalling both 2.0 and 1.0.
Understand.
Copy&paste all unninstall code from install 2.0 to upgrade 2.0.

It can be in a common that file that can be !include'd from both. But nothing I've said so far is a standard or anything like that... Whatever works for you is fine.

What about IRC? Are you coming?


Originally posted by kichik
It can be in a common that file that can be !include'd from both. But nothing I've said so far is a standard or anything like that... Whatever works for you is fine.

What about IRC? Are you coming?
I'll set !define in setup file for making uninstall.exe. It's easy.

Offtopic :( Tell me How to use online IRC client? Link?

Originally posted by romko2005
I'll set !define in setup file for making uninstall.exe. It's easy.

Offtopic :( Tell me How to use online IRC client? Link?
I'm here/ In IRC