Deployment Issues

Add-in Express™ Support Service
That's what is more important than anything else

Deployment Issues
Old Install ran without elevated privileges, new one requires them 
Michael Benowitz




Posts: 32
Joined: 2017-02-03
Hello,

I copied our old install setup and all. The changed a few thins to create a new version. Now when I install the Xll addin it tells me Policies prevent this action. If I change [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
"DisableMSI"=dword:00000000 in the registry the install runs.

Any hints to where I should look for the differences.

Thank You.

Mike
Posted 22 Aug, 2018 15:18:43 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Mike,

I assume you talk about this policy: https://docs.microsoft.com/en-us/windows/desktop/msi/disablemsi. If so and if your old installer produces the same issue, I suggest that you talk to administrators.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Aug, 2018 01:31:48 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
My old Installer doesn't produce the issue.

Thanks,

Mike
Posted 23 Aug, 2018 07:36:09 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Michael,

Installing to Program Files requires elevated permissions. This is by default. Any setup project installing to Prgram Files on a new Windows setup will show the UAC prompt. This is controlled by Windows, not by your installer. That the old installer didn't produce the prompt may be a result of deploying to the folder other than Program Files.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Aug, 2018 09:51:38 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
This is for the xll addin it gets installed in C:\Users\xxx\AppData\Local. Is it possible it's installing something in program files in error?

Thanks,

Mike
Posted 23 Aug, 2018 09:57:39 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Excel add-ins - XLL add-in and Automation add-in - are strictly per-user things. You cannot install them on the per-machine basis. Only a COM add-in can be installed to Program Files.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Aug, 2018 10:20:23 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
I double checked my XLL install is set to per user. Any place else I should look for what's causing the Install authorization message to pop up.

Thanks,

Mike
Posted 23 Aug, 2018 12:09:48 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Mike,

Writing to any location that the user has no permissionstriggers UAC. Examples are: installing to Program Files or creating keys in HKLM.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Aug, 2018 00:44:56 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
I went through everything in my install comparing every property to the old one and can't find anywhere that's updating the registry and all files are getting installed into the users user setting folder.

Any other guidance would be appreciated.

Thanks,

Mike
Posted 28 Aug, 2018 12:27:18 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Can it be so that your new installer deploys the extension per machine? You can also let Add-in Express generate a new setup project.


Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2018 03:13:24 Top