abaccharetti
Posts: 9
Joined: Thu Oct 31, 2013 6:03 pm

[MSI][PROGRAM FILES][ADMIN]

Hi,

I created a MSI to provide our software to a customer who wants to deploy from GPO AND GUI.

He wants to deploy either in a user folder either 'program files' ( he is in sweden, so 'Program' ).

It seems my installation doesn't have writting rights during the installation unser its own folder ( ei : C:\Program\MyAppli or C:\program files\MyAppli ).
It works when he installs it under :C:\MyAppli\.

I created a custom action ( exe who need wrting rights into the root of the application ).
The It need to install it under the user account BUT he wants to be prompt to enter the admin credential without 'run as'. The installer should detect and prompt if necessary

So my issue is :
- how i need to set my project to handle the writing rights during the installation ?
I tried all the "Installation type" parameters, no good result as expected

Please if you need more informations, answer me asap.

Alan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: [MSI][PROGRAM FILES][ADMIN]

Hello Alan and welcome to Advanced Installer forums,

Indeed Users group doesn't have write access in per-machine locations like Program Files. This is a Windows standard which is not related to installations.
The It need to install it under the user account BUT he wants to be prompt to enter the admin credential without 'run as'. The installer should detect and prompt if necessary
Please note that any tasks that require administrator privileges will trigger an UAC prompt (if UAC is enabled) and the user will have to enter its credentials.
how i need to set my project to handle the writing rights during the installation ?
In order to launch your custom action you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

You can also take a look on the How to give permissions for folders in c#? article which may be useful to you.
It seems my installation doesn't have writting rights during the installation unser its own folder ( ei : C:\Program\MyAppli or C:\program files\MyAppli ).
It works when he installs it under :C:\MyAppli\.
I'm not sure why you encountered this behavior.
Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them? If it contains confidential information you can send us a small test project which reproduce this behavior.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
abaccharetti
Posts: 9
Joined: Thu Oct 31, 2013 6:03 pm

Re: [MSI][PROGRAM FILES][ADMIN]

Hi,

Thanks for you rapid answer.
First, I'm not sure my customer have the UAC enabled.
But i assume even if it's disabled, the admin credentials has to prompt.

I just receive a message that the installation can't continue about a writing issue.

My need :
- The customer must be able to install it in GUI with admin prompt if necessary. ( my problem is : it never prompt, I just see the sheild icon on the button Install )
- The customer must be able to install it in GPO
- he must be able to install it in program files, or whereever he wants. He can enter his admin credential as needed.

Here my project : simple, installation with an exe at the end that is launched to validate our licence.

Thanks a lot. I need your help.

Alan
Attachments
MSI2bbb6.LOG
(285.11 KiB) Downloaded 276 times
QuickTrim Holmen Hallsta.aip
(32.03 KiB) Downloaded 271 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: [MSI][PROGRAM FILES][ADMIN]

Hello,
First, I'm not sure my customer have the UAC enabled.
But i assume even if it's disabled, the admin credentials has to prompt.
If the UAC is off then it will not be any prompt to enter admin credentials.
If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.

You can take a look on the User Account Control article which may be useful to you.
I just receive a message that the installation can't continue about a writing issue.
I've took a look on your log and everything seems correct. The installation has been successfully finished. Can you please tell us if the attached log is the log where the installation fails? If it is not, can you please send us a log where the installation fails?
 The customer must be able to install it in GPO
We have the "Deploying a MSI through GPO" tutorial that can help you with this. Have you checked the guidelines mentioned there?

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
abaccharetti
Posts: 9
Joined: Thu Oct 31, 2013 6:03 pm

Re: [MSI][PROGRAM FILES][ADMIN]

Thanks, i will do some search.

You can put this thread on hold.

Return to “Building Installers”