How to make uninstall file?
#1
Posted 02 September 2006 - 03:07 AM
I am trying, these days, to make some of my applications portable so that they are instantly available to use without requiring installation and manual registration. I have put my files in winrar sfx which extracts them to %programfiles%\portable folder.
Now I want help from my seniors in this field, in making an uninstall file, which on a single double click will delete %programfiles%\portable folder and the files and also the registry entries which are made during my application run.
Am I clear enough to make you understand about my requirement?
#2
Posted 02 September 2006 - 06:57 AM
I'm probably not understanding your question, so pardon me if I miss the mark here. My understanding is that you create an SFX file that unpacks itself to %programfiles%\portable and then installs your application from that directory. After the application installs, you want to get rid of the %programfiles%\portable folder?
If this is the case, you can do this automaically with the WinRAR SFX file itself. When setting up the SFX file, do not specify the hardcoded path in the "Path to extract" field. Instead, go to the Modes tab and click the "Unpack to temporary folder" checkbox. When you do this, WinRAR will unpack the files to a temporary folder, run whatever command you have specified in the "Run after extraction" field and then delete the temporary folder when the command is finished. That way, you don't have to clean up anything.
If this isn't what you are after, please elaborate a bit and we'll see what we can do to help you out.
#3
Posted 03 September 2006 - 01:26 AM
I'm not sure if your "requirement" is a portable application?. Using Inno Setup could be a better idea to use then a SFX. An installer is like a SFX, but has all the extra options that you may want.
You can get Inno Setup at this link:
http://www.jrsoftware.org/isinfo.php
And ISTool a link which is a friendly Gui frontend for Inno Setup:
http://www.istool.org/default.aspx/
#4
Posted 03 September 2006 - 02:38 AM
http://www.epsilonsquared.com/
This post has been edited by patelsiraj1: 03 September 2006 - 02:39 AM
#5
Posted 03 September 2006 - 10:23 PM
PaulIA, I am sorry that I couldn't make you understand my question. Yes, my SFX file unpacks itself to %programfiles%\portable but then it does not install anything but runs my application directly from there. I know about "TempMode" of winrar, but I don't want to use that for this particular exercise because I don't want to get my foder deleted automatically after the extraction, but later when I decide to remove this softwre from my machine. I can do this manually also, deleting the foder and deleteing the registry entries, but I want to make a quick way of doing that like making a batch file or a macro???
#6
Posted 04 September 2006 - 03:59 AM
#7
Posted 04 September 2006 - 07:46 AM
#8
Posted 04 September 2006 - 08:05 AM
I wanted to post that guide long ago. I just lacked time.
But, finally, I got the time to compile and test it again and again on my machine.
Any thoughts are welcome, tho.
This post has been edited by mazin: 04 September 2006 - 08:10 AM
#9
Posted 22 September 2006 - 12:04 AM
still in test, but most of them worked.
here goes the sample
Quote
title Desinstalando programas automaticamente
echo Desintalando Nero Burning Rom
start /wait %programfiles%\Ahead\Nero\Uninstall\UNNero.exe /silent
echo.
echo Desinstalando GetRight
taskkill /F /IM getright.exe
start /wait %programfiles%\GetRight\UNWISE.EXE /s
echo.
echo Desinstalando ICQ
taskkill /F /IM icq.exe
taskkill /F /IM ICQNet.exe
start /wait %programfiles%\ICQ\ICQUninstall.exe /s
echo.
echo Desinstalando Irfan View
start /wait %programfiles%\IrfanView\iv_uninstall.exe /s
echo.
echo Desinstalando K-Lite nsane version
start /wait %programfiles%\K-Lite\unins000.exe /silent
echo.
echo Desinstalando K-Lite Mega Codec Pack
start /wait %programfiles%\K-Lite~1\unins000.exe /silent
echo.
echo Desinstalando Mozilla Firefox
start /wait %programfiles%\Mozill~1\uninstall\uninstall.exe /s
echo.
echo Desinstalando Winamp v2.x
start /wait %programfiles%\Winamp\UninstWA.exe /s
echo.
echo Desinstalando WinRAR
start /wait %programfiles\WinRAR\Uninstall.exe /s
echo.
echo Desinstalando avast! Antivirus v4.7
start /wait rundll32 %programfiles%\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup
echo.
echo Quando o nome da pasta em que o programa estiver instalado tiver espacos, o DOS nao reconhece o nome da pasta corretamente. Entao usar os primeiros 5 caracteres do nome da pasta, seguido por ~1 (ex: K-Lite~1 eh a pasta onde fica instalado o K-Lite Mega Codec Pack)
echo.
echo Desinstalando Windows Media Player 10
start /wait "%programfiles%\Windows Media Player\Setup_wm.exe" /Uninstall /QB
echo.
pause
exit
Desinstalando means Unninstalling. ´Cause my language is portuguese.
hope this helps.
This post has been edited by gugutz: 22 September 2006 - 12:27 AM



Help
Back to top









