MSFN Forum: How to make uninstall file? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to make uninstall file? Rate Topic: -----

#1 User is offline   chikky 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 06

Posted 02 September 2006 - 03:07 AM

Hi, this is my first post in this forum. I had been visiting this board since last 4-5 days and found it very useful to learn about many things.
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 User is offline   PaulIA 

  • Senior Geek
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 30-July 06

Posted 02 September 2006 - 06:57 AM

Welcome to the forum! :hello:

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 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 03 September 2006 - 01:26 AM

Welcome,

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 User is offline   patelsiraj1 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 10-August 05

Posted 03 September 2006 - 02:38 AM

use installrite

http://www.epsilonsquared.com/

This post has been edited by patelsiraj1: 03 September 2006 - 02:39 AM


#5 User is offline   chikky 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 06

Posted 03 September 2006 - 10:23 PM

Thanks for the suggestios, brothers. I would definitely like to try Innosetup, Installrite or any similar software as suggested. But as on now I prefer to use winrar as I believe that it has better compression ability than other installers. Well, I might be wrong as I didnot give enough tries to other options.
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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 04 September 2006 - 03:59 AM

You may find this topic useful: http://www.msfn.org/...showtopic=82047

#7 User is offline   PaulIA 

  • Senior Geek
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 30-July 06

Posted 04 September 2006 - 07:46 AM

If you still want to use WinRAR, I'd seriously suggest taking a look at mazin's thread. It's the same thing I was trying to explain, but he's done a much better job at describing it. :thumbup

#8 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 04 September 2006 - 08:05 AM

Thanks, Paul!

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 User is offline   gugutz 

  • Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 16-September 06

Posted 22 September 2006 - 12:04 AM

i made a batch file containing the switches for unninstallers.
still in test, but most of them worked.

here goes the sample

Quote

@echo off
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


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy