Shortcut Icon file Location

Got a problem you cannot solve? Try here.
MaudDib
Posts: 16
Joined: Wed Jun 10, 2015 2:50 am

Shortcut Icon file Location

Postby MaudDib » Tue Jun 30, 2015 6:01 am

Dear Support

I'm experiencing a strange error with regarding the Icon location of my shortcuts. I have setup the icon file path with a C:\ path. My first concern is: how is this path created on the client's machine as I don't seem to be able to control this? Do i have to create the folder path in the MSICode? Secondly, how do I control this location if the system setups the application's (icon included there) files for 32bit and 64bit at different locations depending on the OS version and hardware.

Further notes: When I run the installation (on a virtual machine) it icon's location is set to something other than what I set it to in the project. Is this caused by the fact that the client's machine does not have the logical path that I set in the project?

As an example, here is the icon details in IA:

Icon File Path - 01.JPG
Icon File Path - 01.JPG (104.64 KiB) Viewed 6170 times


And here is the icon detail for the shortcut properties when I click on the button "Change Icon".

Icon File Path - 02.JPG
Icon File Path - 02.JPG (68.35 KiB) Viewed 6170 times


I appreciate your help.

Best regards

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Shortcut Icon file Location

Postby FrancescoT » Tue Jun 30, 2015 1:00 pm

Dear MaudDib,

the "%SystemRoot%..." icon's location is defined and controlled by the OS directly and there is no need to alter this behavior.

For what concerns your first problem, I am not quite sure to follow your question.
Are you having problem to display the icon assigned with the shortcut?

Anyway if you are installing a NATIVE X86 application, there aren't particular steps to follow when installing on x64 target machine.
The setup process runs in 32 bit mode by default (unless "Set x64 - installation mode" had been defined), consequently at setup runtime, all the target paths are appropriately resolved as required when installing a x86 application on a x64 target OS.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MaudDib
Posts: 16
Joined: Wed Jun 10, 2015 2:50 am

Re: Shortcut Icon file Location

Postby MaudDib » Wed Jul 01, 2015 8:31 am

Hi Francesco

Thanks for your reply. My apologies for the confusion. So basically my problem is that the icon of the shortcuts is not displaying as the paths are not correct, which is what i was trying to show with the images in my initial post.

Perhaps this question will help to clarify what I need assistance with. Firstly, when creating a shortcut, there is the text box for filling in the exact path of the Icon File Path and the rules are that no variables are allowed to be used in this path. So how do i know what that path is going to be if i'm using $PROGRAMFILES$ for the directory into which all my application files (including the icon file) are save in, through the use of Features and Files in the Designer? This issue is especially true for me as I'm catering for both 32 bit and 64 bit systems (which according to your response is not the issue).

So basically, I wonder if i just have to type into the text box something like: "C:\Program Files (x86)\[application name]\..."

I hope this clarifies my problem?

Best regards

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Shortcut Icon file Location

Postby FrancescoT » Wed Jul 01, 2015 1:49 pm

Dear MaudDib,

if you replace the demo parameters used by the "Create Shortcut" code sample, you must be able to the same without problems.

Code: Select all

~InstallAware Clipboard Data~
~Create Shortcut~
~{38472FEB-E3FC-42A6-AB9A-4463A430A459}~
~$TARGETDIR$\MYINSTALLED.exe|FALSE~
~My Application name~
~$DESKTOPDIR$|FALSE~
~My Application description~
~~
~|FALSE~
~Full path of the icon file on the build machine|FALSE~
~|~
~0|~


The fundamental parametrs are;
Shortcut to File = the target directory of your application (once installed)
Link Location = where the shortcut is stored on the target machine (the DESKTOP in this case)
Icon File Path = The path must point to a file on your development system ... no variables are allowed with Windows Installer Engine.

Hope this clarifies your doubt.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

MaudDib
Posts: 16
Joined: Wed Jun 10, 2015 2:50 am

Re: Shortcut Icon file Location

Postby MaudDib » Thu Jul 02, 2015 6:32 am

Hi Francesco

Thanks for your help. Unfortunately, I don't understand what you are trying to tell me but it is no matter because i managed to get my icon to display after my software was installed. I managed to get this working by leaving the Icon File Path text box blank. I think that my exe has the icon built into in from compiler as i don't know how it is finding the icon otherwise.

I really do appreciate your help even though i don't think i fully understand how the Icon File path is meant to work normally.

Best regards


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 127 guests