Jump to content

Uninstall question?


*Reaper*

Recommended Posts

Im working on a addon...

I know the addon portion of the script works (tested it on a live install)

Now I'm trying to add the extra stuff to it so It will be uninstallable...

Could someone take a look at this and offer suggestions, comments, and also point out my screwups...

;AddOn By Reaper

[Version]
Signature=$Windows NT$

[Optional Components]
ArcConvert
AddReg=Uninstall.AddReg

[DefaultInstall]
CopyFiles =Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,U
NP_Files,@%INF_FILE%
ProfileItems=AC_AddShortcut

[ArcConvert]
OptionDesc ="ArcConvert"
Tip ="Copyright © Dirk Paehl"
Modes =0,1,2,3
CopyFiles =Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,U
NP_Files
ProfileItems=AC_AddShortcut

[uninstall]
BeginPrompt = BeginUnInsPrompt
EndPrompt = EndUnInsPrompt
RunPreSetupCommands = Kill.ArcConvert:1
DelFiles = Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,UN
P_Files,pnf
DelDirs = ArcConvert.Dir
DelReg = Uninstall.AddDelReg
ProfileItems = Program.DelShortcut
UpdateInis = sysoc.clean
Cleanup = 1

[Kill.ArcConvert]
tskill arc_convert

[Program.DelShortcut]
Name =%PROG_NAME%,0x00000002
SubDir=Accessories\System tools

[pnf]
ArcConvert.pnf

[Sysoc.clean]
%17%\sysoc.inf,Components,ArcConvert=*

[ArcConvert.Dir]
%16422%/%AC%
%16422%/%LOCALE%
%16422%/%LOCALE1%
%16422%/%LOCALE2%
%16422%/%LOCALE3%
%16422%/%LOCALE4%
%16422%/%UNP%

[BeginUnInsPrompt]
Title =%PROG_NAME% Uninstaller
Prompt =Are you sure you want to remove %PROG_NAME% from your computer?
ButtonType=YESNO;<- YESNO or OKCANC

[EndUnInsPrompt]
Prompt=%PROG_NAME% was successfully removed from your computer.


[SourceDisksNames.x86]
1="%AC% Files","AConvert.cab",,"i386"

[DestinationDirs]
Main_App =16422,%AC%
LOCALE_Files =16422,%LOCALE%
LOCALE1_Files =16422,%LOCALE1%
LOCALE2_Files =16422,%LOCALE2%
LOCALE3_Files =16422,%LOCALE3%
LOCALE4_Files =16422,%LOCALE4%
UNP_Files =16422,%UNP%
Program.Files=16422,%AC%

[Uninstall.AddDelReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","DisplayIcon",0,"%16422%\%AC%\arc_convert.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","DisplayName",0,"%PROG_NAME%"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","DisplayVersion",0,"%VERS%"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","NoModify",0x10001,01,00,00,00
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","NoRepair",0x10001,01,00,00,00
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","UninstallString",0,"rundll32.exe advpack.dll,LaunchINFSection AConvert.inf,Uninstall"

[SourceDisksFiles]
7z.dll=1
7z.exe=1
7-zip32.dll=1
Aplib.dll=1
arc_convert.exe=1
Bga32.dll=1
Bh32.dll=1
bma.exe=1
BriefLZ.dll=1
cab32.dll=1
cmdTotal.exe=1
cryptonite.wcx=1
DelZip179.dll=1
dpinfo95.dll=1
Dz32.dll=1
external.conf=1
Ha32.dll=1
info.txt=1
innounp.exe=1
InstExpl.dll=1
InstExpl.wcx=1
lfb.dll=1
lzop.exe=1
NOA32w.dll=1
paq7.exe=1
paq8.exe=1
Paq32.dll=1
Spl32.dll=1
Sqx.dll=1
tar32.dll=1
translation.txt=1
uda.exe=1
UHARC.EXE=1
Unacev2.dll=1
UnAlz32.dll=1
Unarc.dll=1
UNARJ32J.DLL=1
Unbel32.dll=1
UnGCA32.dll=1
UnHki32.dll=1
UnImp32.dll=1
UNLHA32.DLL=1
UnPma32.dll=1
unrar32.dll=1
unrar.dll=1
UNYZ1.DLL=1
Unzoo.dll=1
Yz1.dll=1
Yz2.dll=1
Bzip2_1.unp=1
Bzip2_2.unp=1
Bzip2_3.unp=1
Eschalon.unp=1
Gentee.unp=1
inflate1.unp=1
inflate2.unp=1
inflate3.unp=1
lzma.unp=1
pkware.unp=1
vise.unp=1
default.mo=1
default.po=1
de_default.mo=1
de_default.po=1
it_default.mo=1
it_default.po=1
nl_default.mo=1
nl_default.po=1
tw_default.mo=1
tw_default.po=1

[Main_App]
7z.dll
7z.exe
7-zip32.dll
Aplib.dll
arc_convert.exe
Bga32.dll
Bh32.dll
bma.exe
BriefLZ.dll
cab32.dll
cmdTotal.exe
cryptonite.wcx
DelZip179.dll
dpinfo95.dll
Dz32.dll
external.conf
Ha32.dll
info.txt
innounp.exe
InstExpl.dll
InstExpl.wcx
lfb.dll
lzop.exe
NOA32w.dll
paq7.exe
paq8.exe
Paq32.dll
Spl32.dll
Sqx.dll
tar32.dll
translation.txt
uda.exe
UHARC.EXE
Unacev2.dll
UnAlz32.dll
Unarc.dll
UNARJ32J.DLL
Unbel32.dll
UnGCA32.dll
UnHki32.dll
UnImp32.dll
UNLHA32.DLL
UnPma32.dll
unrar32.dll
unrar.dll
UNYZ1.DLL
Unzoo.dll
Yz1.dll
Yz2.dll

[LOCALE_Files]
default.mo
default.po

[LOCALE1_Files]
default.mo,de_default.mo
default.po,de_default.po

[LOCALE2_Files]
default.mo,it_default.mo
default.po,it_default.po

[LOCALE3_Files]
default.mo,nl_default.mo
default.po,nl_default.po

[LOCALE4_Files]
default.mo,tw_default.mo
default.po,tw_default.po

[UNP_Files]
Bzip2_1.unp
Bzip2_2.unp
Bzip2_3.unp
Eschalon.unp
Gentee.unp
inflate1.unp
inflate2.unp
inflate3.unp
lzma.unp
pkware.unp
vise.unp

[AC_AddShortcut]
Name =Archive Converter
CmdLine =16422,%AC%,arc_convert.exe
SubDir =Accessories\System tools
WorkingDir=16422,%AC%

[Strings]
AC ="ArcConvert"
LOCALE ="ArcConvert\locale\en\LC_MESSAGES"
LOCALE1 ="ArcConvert\locale\de\LC_MESSAGES"
LOCALE2 ="ArcConvert\locale\it\LC_MESSAGES"
LOCALE3 ="ArcConvert\locale\nl\LC_MESSAGES"
LOCALE4 ="ArcConvert\locale\tw\LC_MESSAGES"
VERS ="0.49.10a"
UNP ="ArcConvert\Unp"
PROG_NAME="Archive Converter"
inf_File ="AConvert.inf"

Link to comment
Share on other sites

Kel I find one sometimes is enough, I add a second one if I'm are having problems deleting the shortcut with the first one.

I see another couple little problems

;AddOn By Reaper

[Version]

Signature="$Windows NT$"

[Optional Components]

ArcConvert

[DefaultInstall]

CopyFiles =Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,U

NP_Files,@%INF_FILE%

AddReg =Uninstall.AddDelReg

ProfileItems=AC_AddShortcut

[ArcConvert]

OptionDesc ="ArcConvert"

Tip ="Copyright

Link to comment
Share on other sites

Ok.....

Now.... When using this addon.... Everything works fine... The one thing I do notice is,

when you go to Add/Remove Programs in Control Panel.... Most every program in there

has out to the right side the SIZE, USED, & LAST USED ON......

This one does not..... Is it something I have left out of the .inf or entries file????

I know I'm being picky, but would like to make sure everything is correct, BEFORE

I start releasing addons for others to use....

Edited by Makave2345
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...