marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

Windows 8.1 Public vs User Desktop Folder

I want to install the Application Shortcut and another file on the User's desktop folder.

By default the files go to the Public\Destkop.

I added a new Property based User Defined folder to the installer project "Desktop" with the value %userprofile%. Now I can't seem to modify this or remove it.

How do I define the User's Desktop Folder as the target for the App Shortcut and another file?

Thanks!
David R
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Windows 8.1 Public vs User Desktop Folder

Hi David,

Indeed, to install the files for the user's desktop you need to create a property based folder. For details, please check the
install files in a custom folder article with related information for hints and guidance.

You can also take a look on the create a editable RDP file on user desktop forum thread
where the same problem was discussed.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

Re: Windows 8.1 Public vs User Desktop Folder

Irina,

I've carefull read through the page:

http://www.advancedinstaller.com/user-g ... older.html

I need help doing this.

Please contact me, perhaps I can share my screen in a join.me, and this can get done in minutes.

Thanks!
David R
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Windows 8.1 Public vs User Desktop Folder

Hi David,

Can you please tell me at which step have you encountered difficulties?

Attached you can find a sample project.

For the custom action, please keep in mind that on Vista operating system and above, the path will be something like that:

Code: Select all

C:\Users\<username>\Desktop
In order to run a custom action based on the Windows version, you can follow the steps from the How do I install resources based on the Operating System version? article.

If you have other questions, please let us know.

For a step by step and more close guidance, don't forget that you can access our training services.

Kind regards,
Irina
Attachments
userShortcut.zip
(46.16 KiB) Downloaded 443 times
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

Re: Windows 8.1 Public vs User Desktop Folder

I followed your example project to create a property based folder USER_DESKTOP. (see attachments)

When I run the installer I get a message:

Could not find the network location NONE. (see attachments)

Please help me get beyond this message.

Thanks!
Attachments
CCNI_AI_CustomActions.JPG
CCNI_AI_CustomActions.JPG (180.26 KiB) Viewed 11924 times
CCNI_AI_FilesFolders.JPG
CCNI_AI_FilesFolders.JPG (107.73 KiB) Viewed 11924 times
CCNI_AI_Msg1.JPG
CCNI_AI_Msg1.JPG (36.97 KiB) Viewed 11924 times
marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

Re: Windows 8.1 Public vs User Desktop Folder

Attached is the log for the installer run.
Attachments
MSId4e6d.LOG
(41.39 KiB) Downloaded 497 times
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Windows 8.1 Public vs User Desktop Folder

Hello,

This happens because you added your custom action in "Wizard Dialogs Stage" after the "Paths Resolution" action group. Please be aware that the folder paths are resolved during this action group and at this stage your "USER_DESKTOP" is not set to a valid path. Therefore the above error is thrown.

Please move your "SetProperty" custom action before the "Paths Resolution: action group in "Wizard Dialogs Stage" and test again your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

Re: Windows 8.1 Public vs User Desktop Folder

That works!

Thanks!
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Windows 8.1 Public vs User Desktop Folder

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”