This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- AddFolderIcon failed in Windows7
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 18, 2009
11:09 PM
AddFolderIcon failed in Windows7
Hi,
My AddFolderIcon script works well for all OS but Windows7:
if (AddFolderIcon(FOLDER_PROGRAMS^strGroupFolder,QBSHORTCUTFILENAME,"\""+strInstallDir+"qckbld.exe\"",strInstallDir,"",0,"",REPLACE) < 0) then
MessageBox ("Couldn't add MyAPP shortcut to Start Menu.", SEVERE);
endif;
Is there any special things in Windows7? Could someone help on this issue?
Many Many thanks!!!
My AddFolderIcon script works well for all OS but Windows7:
if (AddFolderIcon(FOLDER_PROGRAMS^strGroupFolder,QBSHORTCUTFILENAME,"\""+strInstallDir+"qckbld.exe\"",strInstallDir,"",0,"",REPLACE) < 0) then
MessageBox ("Couldn't add MyAPP shortcut to Start Menu.", SEVERE);
endif;
Is there any special things in Windows7? Could someone help on this issue?
Many Many thanks!!!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
02:05 AM
This an installscript or basic MSI project? in my Basic MSI project I had to set my Custom Action to Deferred Execution and make sure it's between Install Initialize and Install Finalize. This way the action can be rolled back on failure/cancel.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
02:26 AM
lordmaxx wrote:
This an installscript or basic MSI project? in my Basic MSI project I had to set my Custom Action to Deferred Execution and make sure it's between Install Initialize and Install Finalize. This way the action can be rolled back on failure/cancel.
Thanks lordmaxx, I think mine is basic MSI project. I am sure my execution is between Install Initialize and Install Finalize. Installshiled failed to execute AddFolderIcon and error message pops up.
The error only occurred on Windows 7. It works well on Windows XP, windows 2003 and so on.
Thanks.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)