*Reaper* Posted November 26, 2007 Posted November 26, 2007 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]ArcConvertAddReg=Uninstall.AddReg[DefaultInstall]CopyFiles =Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,UNP_Files,@%INF_FILE%ProfileItems=AC_AddShortcut[ArcConvert]OptionDesc ="ArcConvert"Tip ="Copyright © Dirk Paehl"Modes =0,1,2,3CopyFiles =Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,UNP_FilesProfileItems=AC_AddShortcut[uninstall]BeginPrompt = BeginUnInsPromptEndPrompt = EndUnInsPromptRunPreSetupCommands = Kill.ArcConvert:1DelFiles = Main_App,LOCALE_Files,LOCALE1_Files,LOCALE2_Files,LOCALE3_Files,LOCALE4_Files,UNP_Files,pnfDelDirs = ArcConvert.DirDelReg = Uninstall.AddDelRegProfileItems = Program.DelShortcutUpdateInis = sysoc.cleanCleanup = 1[Kill.ArcConvert]tskill arc_convert[Program.DelShortcut]Name =%PROG_NAME%,0x00000002SubDir=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% UninstallerPrompt =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,00HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","NoRepair",0x10001,01,00,00,00HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PROG_NAME%","UninstallString",0,"rundll32.exe advpack.dll,LaunchINFSection AConvert.inf,Uninstall"[SourceDisksFiles]7z.dll=17z.exe=17-zip32.dll=1Aplib.dll=1arc_convert.exe=1Bga32.dll=1Bh32.dll=1bma.exe=1BriefLZ.dll=1cab32.dll=1cmdTotal.exe=1cryptonite.wcx=1DelZip179.dll=1dpinfo95.dll=1Dz32.dll=1external.conf=1Ha32.dll=1info.txt=1innounp.exe=1InstExpl.dll=1InstExpl.wcx=1lfb.dll=1lzop.exe=1NOA32w.dll=1paq7.exe=1paq8.exe=1Paq32.dll=1Spl32.dll=1Sqx.dll=1tar32.dll=1translation.txt=1uda.exe=1UHARC.EXE=1Unacev2.dll=1UnAlz32.dll=1Unarc.dll=1UNARJ32J.DLL=1Unbel32.dll=1UnGCA32.dll=1UnHki32.dll=1UnImp32.dll=1UNLHA32.DLL=1UnPma32.dll=1unrar32.dll=1unrar.dll=1UNYZ1.DLL=1Unzoo.dll=1Yz1.dll=1Yz2.dll=1Bzip2_1.unp=1Bzip2_2.unp=1Bzip2_3.unp=1Eschalon.unp=1Gentee.unp=1inflate1.unp=1inflate2.unp=1inflate3.unp=1lzma.unp=1pkware.unp=1vise.unp=1default.mo=1default.po=1de_default.mo=1de_default.po=1it_default.mo=1it_default.po=1nl_default.mo=1nl_default.po=1tw_default.mo=1tw_default.po=1[Main_App]7z.dll7z.exe7-zip32.dllAplib.dllarc_convert.exeBga32.dllBh32.dllbma.exeBriefLZ.dllcab32.dllcmdTotal.execryptonite.wcxDelZip179.dlldpinfo95.dllDz32.dllexternal.confHa32.dllinfo.txtinnounp.exeInstExpl.dllInstExpl.wcxlfb.dlllzop.exeNOA32w.dllpaq7.exepaq8.exePaq32.dllSpl32.dllSqx.dlltar32.dlltranslation.txtuda.exeUHARC.EXEUnacev2.dllUnAlz32.dllUnarc.dllUNARJ32J.DLLUnbel32.dllUnGCA32.dllUnHki32.dllUnImp32.dllUNLHA32.DLLUnPma32.dllunrar32.dllunrar.dllUNYZ1.DLLUnzoo.dllYz1.dllYz2.dll[LOCALE_Files]default.modefault.po[LOCALE1_Files]default.mo,de_default.modefault.po,de_default.po[LOCALE2_Files]default.mo,it_default.modefault.po,it_default.po[LOCALE3_Files]default.mo,nl_default.modefault.po,nl_default.po[LOCALE4_Files]default.mo,tw_default.modefault.po,tw_default.po[UNP_Files]Bzip2_1.unpBzip2_2.unpBzip2_3.unpEschalon.unpGentee.unpinflate1.unpinflate2.unpinflate3.unplzma.unppkware.unpvise.unp[AC_AddShortcut]Name =Archive ConverterCmdLine =16422,%AC%,arc_convert.exeSubDir =Accessories\System toolsWorkingDir=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" Quote
Kelsenellenelvian Posted November 26, 2007 Posted November 26, 2007 [Program.DelShortcut2]Name =%PROG_NAME%,0x00000003SubDir=Accessories\System toolsYou actually need 2 delete shortcut sections for some god awful reason.Other that that it looks good. Quote
ricktendo Posted November 26, 2007 Posted November 26, 2007 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,UNP_Files,@%INF_FILE%AddReg =Uninstall.AddDelRegProfileItems=AC_AddShortcut[ArcConvert]OptionDesc ="ArcConvert"Tip ="Copyright Quote
*Reaper* Posted November 27, 2007 Author Posted November 27, 2007 Thanks Kel & Rick..... I appreciate your help.....One other question.......About 8.3 filenames in addons......Do any files "inside" the .inf file or the .cab have to conform to the 8.3 standard, or dojust the .inf and .cab theirself have to? Quote
ricktendo Posted November 27, 2007 Posted November 27, 2007 No only the INF and CAB themselves have to be 8.3 Quote
*Reaper* Posted December 5, 2007 Author Posted December 5, 2007 (edited) 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 therehas 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, BEFOREI start releasing addons for others to use.... Edited December 5, 2007 by Makave2345 Quote
ricktendo Posted December 5, 2007 Posted December 5, 2007 This happens with some of my addons also... Its funny IDK why some and others not. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.