Here is the body of the INF file, I included the section with the strings, so you can see where everything is taken from.
[Version]
Signature = $Windows NT$
[DefaultInstall]
;UpdateInis=CreateStartMenuFolder
AddReg = RegAddUninst
ProfileItems = AddTest, AddTestEx
[DefaultUnInstall]
ProfileItems=AddTest.DelShortcut
[AddTest.DelShortcut]
Name =ACME distorterA,0x0000000A, 2
;Also tried with Name =%Soft_Name%,0x0000000A, 2
;SubDir =Sub Directory
[RegAddUninst]
HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"ACME"
HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection d:\test\installer\installer.inf, DefaultUninstall"
;16422 = program files
[AddTest]
Name = ACME distorterA
SubDir = %Provider%
Infotip = "This is a tooltip weeha!"
CmdLine = -1, %App_ProgramFolder%, Acmedist.exe
WorkingDir = -1, %App_ProgramFolder%
[AddTestEx]
Name = %Soft_Name%
SubDir = %Provider%
Infotip = "This is a tooltip weeha!QQQQQQ"
CmdLine = -1, %App_ProgramFolder%, Acmedist.exe
WorkingDir = -1, %App_ProgramFolder%
[Strings]
SMWCV="Software\Microsoft\Windows\CurrentVersion"
Provider="ACME"
Soft_Name="ACME distorter 5.0"
AppLink="ACME distorter 5.0"
App_Name="ACME distorter 5.0"
App_StartMenuFolder="ACME\Distorter 5.0"
App_ProgramFolder="ACME\Distorter 5.0"
ShortCutFileName="ACME\Distorter 5.0.lnk"
PathAndFileName="ACMEdist.exe"
Arguments= ""
I tried using "0x0000000A,2", as suggested by DaRk MaDnEsS, but the result is the same - the shortcut continues to stay in the Start menu.
well what i think it should work
[AddTest.DelShortcut]
Name =%Soft_Name%,0x0000000A, 2
SubDir = %Provider%
and the shortcut should be
[AddTestEx]
Name = %Soft_Name%,0x00000008,2
SubDir = %Provider%
Infotip = "This is a tooltip weeha!QQQQQQ"
CmdLine = -1, %App_ProgramFolder%, Acmedist.exe
WorkingDir = -1, %App_ProgramFolder%
test and tell me
Edit:
i think since it installs to all users
you might need to use 0x0000000A, 23
with the old inf ( i'm not sure tho i just got this in my head)
Edited by DaRk MaDnEsS, 15 October 2009 - 05:53 PM.