cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alick_li
Level 3

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!!!
Labels (1)
0 Kudos
(2) Replies
lordmaxx
Level 6

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.
0 Kudos
alick_li
Level 3

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.
0 Kudos