Jump to content

MioKawaii

Member
  • Posts

    28
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Malaysia

Everything posted by MioKawaii

  1. It is indeed a brillian idea to use COMSPEC to remove the dir. But my system is screw up as I can't import the reg setting to Uninstall location. I'm doing a fresh install now.
  2. All expert in this forum knows the advantage of using INF to install a software, so I follow the footsteps. But I'm some how lost cause my INF is only 150% complete. You might wonder what the hack is "only 150% complete"? So let me continue............. The experimental target software is call ConvertZ. The INF that I created basically create a folder at %ProgramFiles%\ConvertZv740 and copy all the files declare in [ConvertZ.copy]. Then it create 2 shortcuts at 2 different locations and finally it import some registry stuff so that an entry is added to the Add/Remove Program. That's the 100% portion for INSTALL. But when I uninstall from the Add/Remove Program in control panel, only the files declare in [ConvertZ.del] get deleted. The 2 shortcut and folder created during install remain. That's the 50% portion, so can anybody advice me what to add in my INF so that everything created during install can be remove when uninstall? This is what I do to obtain the final silent install package: 1. Create a folder name "MAKING". 2. Copy all the files defined in [Core.Copy] section in the INF from installed dir to this "MAKING" folder. 3. Create a batch file MioConvertZ802.cmd. cmdow @ /HID @echo off rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 ./MioConvertZ802.inf 4. 7-zip all the files defined in [Core.Copy] section in the INF + MioConvertZ802.inf + MioConvertZ802.cmd to get MioConvertZ802.7z. 5. Create MioConvertZ802.txt (UTF-8). ;!@Install@!UTF-8! RunProgram="MioConvertZ802.cmd" ;!@InstallEnd@! 6. Copy 7-zip SFX module to this "MAKING" folder. 7. Create the final self-extract/install package with the following command: copy /b 7zs.sfx + MioConvertZ802.txt + MioConvertZ802.7z MioConvertZ802.exe
  3. I don't know whether this is the correct thread for this post but I do have question regarding INF & SHORTCUTS. So here it goes: The INF below is use to install a program call ConvertZ. It copy all the files & create shortcuts without problem. But when uninstall, the shortcuts & install folder remain. So can you guys tell me what to add to my INF so the shortcuts & folder created can be remove when uninstall? [Version] Signature="$CHICAGO$" [DefaultInstall] RequiredEngine = Setupapi CopyFiles = ConvertZ.copy UpdateInis = AddLink AddReg = Startup.Reg, Uninst.Reg [DefaultUninstall] RequiredEngine = Setupapi DelFiles = ConvertZ.del DelReg = Startup.Reg [DestinationDirs] DefaultDestDir=11 ConvertZ.copy=16422,%ConvertZ% ConvertZ.del=16422,%ConvertZ% [ConvertZ.copy] B5fix.dat ConvertZ.cnt ConvertZ.exe ConvertZ.hlp gbfix.dat convertz.inf [ConvertZ.del] B5fix.dat ConvertZ.cnt ConvertZ.exe ConvertZ.hlp gbfix.dat convertz.inf [AddLink] setup.ini, progman.groups,, ""group1="%16395%\""" setup.ini, group1,,"""ConvertZ v740"",""""""%16422%\ConvertZv740\ConvertZ.exe""""""" setup.ini, progman.groups,, ""group2="%16410%\Microsoft\Internet Explorer\Quick Launch\""" setup.ini, group2,,"""ConvertZ v740"",""""""%16422%\ConvertZv740\ConvertZ.exe""""""" [Startup.Reg] HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ConvertZ v740",,""%16422%\ConvertZv740\ConvertZ.exe"" [Uninst.Reg] HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\ConvertZ v740","DisplayName",,"ConvertZ v740" HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\ConvertZ v740","UninstallString",,"rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 "%16422%\ConvertZv740\ConvertZ.inf"" HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\ConvertZ v740", "DisplayIcon",,%16422%\ConvertZv740\ConvertZ.exe [Strings] ConvertZ = "ConvertZv740"
×
×
  • Create New...