We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

RickH
Posts: 3
Joined: Tue Jun 17, 2014 4:59 am

Per-user Application Shortcut Folder problems

Hi,

We're trying to create an installer "Per-machine if user is administrator, per-user if otherwise".
Application Folder: [AI_UserProgramFiles][Manufacturer]\[ProductName]
Application Shortcut Folder: [ProgramMenuFolder][Manufacturer]\[ProductName]

All-users installation works fine.

But during an installation in a Windows 8, if installer is running in a non-admin user account, we're getting an error that a shortcut is being created under Program Data. Obviously, we need higher privileges in that folder. The instructions at http://www.advancedinstaller.com/user-g ... users.html does not provide enough details to solve this issue.

Could somebody guide us with this problem?

Thanks
Rick
InstallParameters.png
InstallParameters.png (16.68 KiB) Viewed 3954 times
Files_Folders.png
Files_Folders.png (27.19 KiB) Viewed 3954 times
Dialogs.png
Dialogs.png (6.57 KiB) Viewed 3954 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Per-user Application Shortcut Folder problems

Hello Rick and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

This may happen if you are trying to install in per-user context. From what I see you are adding an installation resource (e.g. a shortcut) under "Common Application Data" folder. Please keep in mind this is not allowed when you are using the "Per-machine if user is administrator, per-user otherwise" installation type. When this installation type is used you should not add any resource under per-machine locations (e.g. Common Application Data). Please take a look on our "Single Package Authoring" article which contain a list of restrictions which you should take into account.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RickH
Posts: 3
Joined: Tue Jun 17, 2014 4:59 am

Re: Per-user Application Shortcut Folder problems

Hi,

Still going around in circles with this issue. I've read the MS article and made some adjustments; per-user package works and per-machine package works. But the dynamic (per-user & per-machine) fails during a limited user installation.

Based on the MS article, the problem seems to be the CommonAppData folder. But how come the "per-user" installation is working fine?

Here's the functionality, I'm trying to achieve:
- single-package; admin user or limited user installs from same package
- AFTER installation, user configures application; this configuration should now be
+ if package was installed with admin rights, config should be SHARED among other users (it contains a unique company wide FTP user/pwd)
+ if package was installed with limited rights, we have no choice but to save the config only for that user

The closest recommendation I found was to save in the CommonFiles folder which to me seems illogical to store config file and logs.

Can you suggest other in-house articles that can guide me better?
Any recommendations would be great.
Thanks
RickH
Posts: 3
Joined: Tue Jun 17, 2014 4:59 am

Re: Per-user Application Shortcut Folder problems

I got distracted with my previous post.
I removed all mention of the CommonAppData folder and the original error is back: an error that a shortcut is being created under Program Data.
- per-user build package, we get an error that a shortcut is being created under Program Data
- "Per-machine if user is administrator, per-user if otherwise" build package, installs nicely

Pls advise.
InstallParameters.PNG
InstallParameters.PNG (2.88 KiB) Viewed 3865 times
FilesAndFolders.png
FilesAndFolders.png (11.01 KiB) Viewed 3865 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Per-user Application Shortcut Folder problems

Hello,
- per-user build package, we get an error that a shortcut is being created under Program Data
Can you please send us the .AIP (project file) and a verbose log of the failing installation to support at advancedinstaller dot com so we can investigate them?

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

Return to “Building Installers”