Windows 7 compatibility mode set for Windows XP SP3 for an executable from the command line and bypass User...
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 "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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:Boss1setup.exe /quiet
del "C:UsersPublicDesktopBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
copy /y "%~dp0Boss.lnk" "C:UsersPublicDesktop"
copy /y "%~dp0Boss.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
copy /y "%~dp0Test-O-Matic!.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
reg.exe Add "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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.
windows-7 command-line compatibility uac regedit
add a comment |
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 "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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:Boss1setup.exe /quiet
del "C:UsersPublicDesktopBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
copy /y "%~dp0Boss.lnk" "C:UsersPublicDesktop"
copy /y "%~dp0Boss.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
copy /y "%~dp0Test-O-Matic!.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
reg.exe Add "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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.
windows-7 command-line compatibility uac regedit
add a comment |
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 "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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:Boss1setup.exe /quiet
del "C:UsersPublicDesktopBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
copy /y "%~dp0Boss.lnk" "C:UsersPublicDesktop"
copy /y "%~dp0Boss.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
copy /y "%~dp0Test-O-Matic!.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
reg.exe Add "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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.
windows-7 command-line compatibility uac regedit
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 "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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:Boss1setup.exe /quiet
del "C:UsersPublicDesktopBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
del "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
copy /y "%~dp0Boss.lnk" "C:UsersPublicDesktop"
copy /y "%~dp0Boss.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossBoss.lnk"
copy /y "%~dp0Test-O-Matic!.lnk" "%ProgramData%MicrosoftWindowsStart MenuProgramsBossTest-O-Matic!.lnk"
reg.exe Add "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /f /v "C:Boss2KBoss.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.
windows-7 command-line compatibility uac regedit
windows-7 command-line compatibility uac regedit
edited Jun 26 '13 at 22:41
Darth Android
34.2k476100
34.2k476100
asked Jun 26 '13 at 22:35
derspinnederspinne
1112
1112
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
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 a comment |
Unpack msi files:
msiexec /a setup.msi /qb TARGETDIR=C:extracted_files
run application setup at compatibility Windows XP SP3
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
@derspinnesetup.msi /?
– STTR
Jun 27 '13 at 15:06
add a comment |
Use runas.exe
Create a shortcut to the app and modify the command line to:
runas /user:Administrator /savecred C:Boss2kBoss.exe
It will ask for administrator credentials once and store them, so the user will be able to run the app with admin rights.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f612535%2fwindows-7-compatibility-mode-set-for-windows-xp-sp3-for-an-executable-from-the-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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 a comment |
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.
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 a comment |
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.
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.
answered Jun 26 '13 at 22:40
Darth AndroidDarth Android
34.2k476100
34.2k476100
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 a comment |
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
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
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 a comment |
Unpack msi files:
msiexec /a setup.msi /qb TARGETDIR=C:extracted_files
run application setup at compatibility Windows XP SP3
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
@derspinnesetup.msi /?
– STTR
Jun 27 '13 at 15:06
add a comment |
Unpack msi files:
msiexec /a setup.msi /qb TARGETDIR=C:extracted_files
run application setup at compatibility Windows XP SP3
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
@derspinnesetup.msi /?
– STTR
Jun 27 '13 at 15:06
add a comment |
Unpack msi files:
msiexec /a setup.msi /qb TARGETDIR=C:extracted_files
run application setup at compatibility Windows XP SP3
Unpack msi files:
msiexec /a setup.msi /qb TARGETDIR=C:extracted_files
run application setup at compatibility Windows XP SP3
answered Jun 26 '13 at 22:48
STTRSTTR
5,85911317
5,85911317
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
@derspinnesetup.msi /?
– STTR
Jun 27 '13 at 15:06
add a comment |
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
@derspinnesetup.msi /?
– STTR
Jun 27 '13 at 15:06
1
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
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
@derspinne
setup.msi /?
– STTR
Jun 27 '13 at 15:06
add a comment |
Use runas.exe
Create a shortcut to the app and modify the command line to:
runas /user:Administrator /savecred C:Boss2kBoss.exe
It will ask for administrator credentials once and store them, so the user will be able to run the app with admin rights.
add a comment |
Use runas.exe
Create a shortcut to the app and modify the command line to:
runas /user:Administrator /savecred C:Boss2kBoss.exe
It will ask for administrator credentials once and store them, so the user will be able to run the app with admin rights.
add a comment |
Use runas.exe
Create a shortcut to the app and modify the command line to:
runas /user:Administrator /savecred C:Boss2kBoss.exe
It will ask for administrator credentials once and store them, so the user will be able to run the app with admin rights.
Use runas.exe
Create a shortcut to the app and modify the command line to:
runas /user:Administrator /savecred C:Boss2kBoss.exe
It will ask for administrator credentials once and store them, so the user will be able to run the app with admin rights.
edited Jan 12 '17 at 14:48
DavidPostill♦
106k26228263
106k26228263
answered Jan 12 '17 at 10:55
DanielDaniel
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f612535%2fwindows-7-compatibility-mode-set-for-windows-xp-sp3-for-an-executable-from-the-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown