Jump to content

Help importing reg file, please...


Recommended Posts


To disable the UAC, I use:


Windows Registry Editor Version 5.00

;--------------------------------------------------------------
; - Désactiver le contrôle des comptes d'utilisateurs ( UAC ) -
;--------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

Works fine for me!

If you have some trouble with some registry keys, you can add a new thread!

Cheers

I search info for "ConsentPromptBehaviorAdmin" and I think my setting value "0" it's correct, not found "5" value from Microsoft... can you tell me it means "5" value...? :unsure:

http://msdn.microsoft.com/en-us/library/cc232762%28v=prot.10%29



Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Value: "ConsentPromptBehaviorAdmin"

Type: REG_DWORD

Data: This MUST be a value in the following table.

Value


Meaning

0x00000000

This option SHOULD be used to allow the Consent Admin to perform an operation that requires elevation without consent or credentials.

0x00000001

This option SHOULD be used to prompt the Consent Admin to enter his or her user name and password (or another valid admin) when an operation requires elevation of privilege.

0x00000002

This option SHOULD be used to prompt the administrator in Admin Approval Mode to select either "Permit" or "Deny" an operation that requires elevation of privilege. If the Consent Admin selects Permit, the operation will continue with their highest available privilege. "Prompt for consent" removes the inconvenience of requiring that users enter their name and password to perform a privileged task.

Edited by alfreire
Link to comment
Share on other sites

Yes, you are right, it's better to use the correct values:


Windows Registry Editor Version 5.00

;--------------------------------------------------------------
; - Désactiver le contrôle des comptes d'utilisateurs ( UAC ) -
;--------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

After a new test, all reg files are successfully installed with, BUT WITH MY REG FILE TO DISABLE UAC:

cmd1 Succès (Code de retour 0): "C:\Windows\SysWOW64\RegEdit" /S "D:\wpi\Install\Tweaks\PowerMenu.reg"

WPI_Log.txt



Début de l'installation: lundi 18 juin 2012 16:37:13

Information WPI:
Version=8.5
Exécutable utilisé=true
Version d'Internet Explorer=8.0

Connexion Internet=false

Système d'exploitation
Système d'exploitation=Not found
ID Edition=Not found
Service Pack=0

Architecture
Nom de l'Architecture=GenuineIntel
Chaîne du Nom de l'Architecture=Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz
ID Architecture=Intel64 Family 6 Model 37 Stepping 2
Nombre de Processeurs=1
MHz=3159
Type d'Architecture=AMD64
SysArch6432=NOT_DEFINED
Bits Architecture=64
64 Bits réel=true

Fichier Options=D:\wpi\UserFiles\useroptions.js
Fichier Configuration=D:\wpi\UserFiles\config.js
Fichier Réseau=D:\wpi\UserFiles\networkoptions.js

// Window tab
Resolution=0
MainWindowWidth=800
MainWindowHeight=600
MainWindowX=-1
MainWindowY=-1
InstallerWindowX=25
InstallerWindowY=25

// General tab
NumCols=1
// ---
Timer=true
Seconds=9
StartBeepAtSecs=10
// ---
Language='fr'
// ---
DefaultInstallPath='%wpipath%'
CustomInstallPath=['']
// ---
AbortInstallIfFailure=true
ExecuteCommandIfFailure=['']
ContinueWhereFailed=false

// Features tab
ShowExtraButtons=true
DoNotShowIfCD=true
USSFSilentMode=false
VerifyInstallHDD=false
AllowCheckForInternet=false
LoadDesktopBeforeInstall=true
ReOpenAfterInstall=false
DisableCatCheckBoxes=false
SortWithinCats=false
DisableOnDepsNotMet=true
AlwaysUseScrollBar=true
DontSplitCats=true
InstallByCategory=false
ReallyForce=false
DisableIfDoGray=false
InstallFonts=true
ShowCommandInInstaller=false
ShowInstallerImages=true
AlwaysShowOutputWindow=false
EjectCDWhenDone=false
DoNotShowIfUSB=true
DisableHotKeys=false

// Tools tab
MonitorResolution=0
MonitorDepth=0
MonitorRefresh=0
// ---
ExecuteBeforeEnabled=false
ExecuteBeforebit64=false
ExecuteBefore=['']
ExecuteAfterEnabled=true
ExecuteAfterbit64=false
ExecuteAfter=['"%systemdrive%\Windows\SETUP\SCRIPTS\clean.vbs"']
// ---
RestartComputer=false
RestartType=0
RestartSeconds=0
DoNotLoadDesktop=false
// ---
LogInstallation=true
LogPath=['%temp%\WPI_Log.txt'];
TimeStampLogFile=true

// Audio tab
PlayAudioInInstaller=false
InstallAudio=['']
Volume=75
Shuffle=false
CopyAudioFolder=false
CopyAudioPath=['']
DeleteAudioFolder=false

// Sounds tab
SndWPIStartCB=true
SndWPIStart=['"%wpipath%\Audio\SoundsScheme\Alert.wav"'];
SndInstallStartCB=false
SndInstallStart=['"%wpipath%\Audio\SoundsScheme\AtBeginning.wav"'];
SndInstallSuccessCB=false
SndInstallSuccess=['"%wpipath%\Audio\SoundsScheme\Yes.wav"'];
SndInstallFailCB=false
SndInstallFail=['"%wpipath%\Audio\SoundsScheme\No.wav"'];
SndInstallFinishCB=false
SndInstallFinish=['"%wpipath%\Audio\SoundsScheme\AtEnd.wav"'];

// Style tab
Theme='Windows7'
Skin='SkyBlue'
BgPicture=''
// ---
LayoutStyle=1
// ---
ShowToolTips=false

Variables Globales:
%OSLANG%=
%WPIPATH%=D:\wpi
%ROOT%=D:
%CDROM%=D:
USB=
%DOSPATH%=
%SYSTEMDRIVE%=C:
%WINDIR%=C:\Windows
%PROGRAMFILES%=C:\Program Files
%TEMP%=C:\Users\Admin\AppData\Local\Temp
%SYSDIR%=C:\Windows\System32
%ALLUSERSPROFILE%=C:\ProgramData
%USERPROFILE%=C:\Users\Admin
%APPDATA%=C:\Users\Admin\AppData\Roaming
%COMMONPROGRAMFILES%=C:\Program Files\Common Files

Liste des programmes à installer:
Tweaks
Execute After

2 Eléments, 2 Commandes

-----

lundi 18 juin 2012 16:37:20
Programme: Tweaks
ID unique: TWEAKS
Ordre: 000023
Catégorie: Applications
lundi 18 juin 2012 16:37:21 - cmd1 Succès (Code de retour 0): "C:\Windows\SysWOW64\RegEdit" /S "D:\wpi\Install\Tweaks\PowerMenu.reg"
lundi 18 juin 2012 16:37:21 - Installation terminée.

-----

lundi 18 juin 2012 16:37:21
Programme: Execute After
ID unique: EXECUTE_AFTER
Ordre: 0
Catégorie: WPI Built In
lundi 18 juin 2012 16:37:23 - cmd1 Succès (Code de retour 0): "C:\Windows\SETUP\SCRIPTS\clean.vbs"
lundi 18 juin 2012 16:37:23 - Installation terminée.

-----

Nombre d'installations échouées: 0

Installation terminée: lundi 18 juin 2012 16:37:23

Edited by myselfidem
Link to comment
Share on other sites

Maybe you can try this reg file! Same folder you used: "WPI\Install\Tweaks\PowerMenu.reg"

*Edit: After testing the reg file I given with the MS values...Doesn't work! The problem is Disabling UAC

Attached file removed.

Edited by myselfidem
Link to comment
Share on other sites

   lunes, 18 de junio de 2012 17:33:49  - cmd1 Enhorabuena (Código devuelto 0): "C:\Windows\SysWOW64\RegEdit" /S "J:\WPI\Install\Tweaks\PowerMenu.reg"

Not work with WPI... If I run PowerMenu.reg direclty work ok...

Edited by alfreire
Link to comment
Share on other sites

I uploaded a NEW "Tweaks.rar" on my last post, because with the Microsoft values, doesn't works.

Please download the new one. Thanks

Doesn't work...

   lunes, 18 de junio de 2012 17:53:41  - cmd1 Enhorabuena (Código devuelto 0): "C:\Windows\SysWOW64\RegEdit" /S "J:\WPI\Install\Tweaks\PowerMenu.reg"

Thank's to you by your help...

Link to comment
Share on other sites

Check if you have not another reg file with the same values for UAC, and use my first example to disable UAC.

After many tests, I see it's the only reg file working fine for me!

You can try also to change the Administrator name to : Admin

HTH

Link to comment
Share on other sites

Here is the new reg file about Power Options right-click:

1 - First its' needed to remove this uneeded key:


Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power Menu]
"MUIVerb"="Alimentation"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"

2 - Final reg key working fine:


Windows Registry Editor Version 5.00

;-----------------------------------------------------------------------------
; - Disable UAC -
;-----------------------------------------------------------------------------

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

;--------------------------------------------------
; Add Power Options on right-click on the Desktop -
;--------------------------------------------------

[HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]
"MUIVerb"="Alimentation"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]
@="Verrouiller"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
@="Fermer la session"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]
@="Shutdown -l"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]
@="Changer d'utilisateur"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command]
@="tsdiscon.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
@="Mettre en veille"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]
@="rundll32.exe powrprof.dll,SetSuspendState Sleep"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
@="Mise en veille prolongée"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]
@="Shutdown -h"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
@="Redémarrer"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]
@="Shutdown -r -f -t 00"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
@="Arrêter"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]
@="Shutdown -s -f -t 00"

;-------------------------------------------------------------------------------------------------

Edited by myselfidem
Link to comment
Share on other sites

Here is the new reg file about Power Options right-click:

1 - First its' needed to remove this uneeded key:


Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power Menu]
"MUIVerb"="Power"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"

Yes, it's necesary for add too at right context to My PC...

I wil try make a new Win 7 AIO without tweaks integrated to view if afect to registry...

Regards... ;-)

post-329917-0-04336000-1340050633_thumb.

Link to comment
Share on other sites

Yes, of course, this regestry part can be keeped!

It seems works better using, like this:

cmds[pn]=['REGEDIT /S %wpipath%\\Install\\Tweaks\\PowerMenu.reg'];

Cheers

Edited by myselfidem
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...