Cum zicea poetul
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Cum zicea poetul
-
-
Thank you for the quick feedback. I've tried multiple approaches and the behaviour is the same - the shortcut is not removed.
Specifically, I tried the following:
- with and without SubDir = %App_StartMenuFolder%
- with "0x00000002", "0x00000003" and with "0x0000000A,22"
I am surprised that none of them work, because the documentation says they should, and your experience is also suggesting that deleting shortcuts this way must work.
remember this shortcut does not actually get created until syssetup.inf is executed, which happens somewhere around or before t13I am thinking that in my case the problem is in the fact that the procedure is not invoked at the right time.
I also guessed it could have some thing to do with administrative privileges (or lack of them), but the results are the same even if I use "run as administrator".
What other ideas you think I could test?
- with and without SubDir = %App_StartMenuFolder%
-
Hi everyone, I signed up to discuss an adventure I'm having with removing shortcuts created with ProfileItems.
First of all, ricktendo64 - thank you for sharing the info, it has been very useful.
Your example of deleting a shortcut is given here:
ProfileItems = MU.DelShortcut
[MU.DelShortcut]
Name=Windows Update,0x0000000A,22Microsoft, on the other hand, advocates a different method. They say the flag to be used is 0x00000002 (FLG_PROFITEM_DELETE)
The problem is that I've tried them both, both work on XP, but none works on Vista or Seven.
Here is the relevant part of the INF that I expect to do the job:
[CreateStartMenuFolderEx]
Name = %AppLink%
SubDir = %App_StartMenuFolder%
CmdLine = -1, %App_ProgramFolder%, File.exe ;-1 means Absolute path
WorkingDir = -1, %App_ProgramFolder%
[DelStartMenuFolderEx]
Name = %AppLink%,0x00000002I suspect it may have something to do with how I call the shortcut removal section. I do it this way:
[DefaultUninstall]
ProfileItems=DelStartMenuFolderExAt this point I have several questions:
- How did you discover the 0x0000000A flag?
- What do you think goes wrong during the attempt to remove the shortcut?
- Am I invoking the ProfileItems delete procedure correctly?
- The Name keyword takes 2 arguments, while you give it a third one - "22", what is it?
I hope some light can be shed on this problem.
- How did you discover the 0x0000000A flag?
[Tutorial] Exotic INF ProfileItems/Shortcuts
in INF Discussion
Posted · Edited by Cum zicea poetul
Here is the body of the INF file, I included the section with the strings, so you can see where everything is taken from.
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.