Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to package an application called Boss and is intended to be deployed through SCCM 2012 and seems that is an old Windows 2K application so it doesn't has all the properties I wish it could have to modify inside an MSI so I have the Setup.exe and a bunch of DLL's to register to make it work for Windows 7.

I finished installing with the regular setup.exe but the application requires Admin Rights to run.

I tried to set the following command on my .CMD installer sequence:

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v "C:\Boss2K\Boss.exe" /d "WINXPSP3"

And it will run the application only with the Admin account but when a single user without an elevated account will try it it just prompt to enter the Admin credentials to run it.

This is the main installer sequence:

@echo off

start /wait C:\Boss1\setup.exe /quiet

del "C:\Users\Public\Desktop\Boss.lnk"
del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Boss\Boss.lnk"
del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Boss\Test-O-Matic!.lnk"

copy /y "%~dp0Boss.lnk" "C:\Users\Public\Desktop"
copy /y "%~dp0Boss.lnk" "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Boss\Boss.lnk"
copy /y "%~dp0Test-O-Matic!.lnk" "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Boss\Test-O-Matic!.lnk"

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v "C:\Boss2K\Boss.exe" /d "WINXPSP3"

exit

So, I just want to know if there's anything that I'm missing here to get this 2 screens bypassed: Compatibility/Change Settings for all Users and the User Account Control in order to run the application without any pop up at all just for this application.

I will appreciate so much any help ! Thanks and kind regards.

share|improve this question
add comment

2 Answers 2

If a standard user tries to run an application which requires elevation, they will have to enter admin credentials. They are not an admin, so it would be unsafe to let them launch a program which runs as admin. You should grant them access to whatever the program needs to modify so that it can be run as a standard user and not as an admin, or you should grant the user admin so that they can write to system portions of the disk.

share|improve this answer
    
Notice that Using SCCM 2012 the installations will run always as Admin and the users on our domain has No Admin rights but the intention is to just install the application for them to use it. –  derspinne Jun 27 '13 at 14:40
add comment

Unpack msi files:

 msiexec /a setup.msi /qb TARGETDIR=C:\extracted_files

run application setup at compatibility Windows XP SP3

share|improve this answer
1  
The installer is an executable and it does not extracts any MSI during installation. Sorry already tried. –  derspinne Jun 27 '13 at 14:41
    
@derspinne setup.msi /? –  STTR Jun 27 '13 at 15:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.