Jump to content

Recommended Posts


Posted (edited)

I export this key from registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Thunderbird\Extensions]
"eplgTb@eset.com"="C:\\Program Files\\ESET\\ESET NOD32 Antivirus\\Mozilla Thunderbird"

I delete key in registry and import trough WPI, doesn't work...

cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\prueba.reg"'];

Edited by alfreire
Posted

Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported...

Thank for your patience and help...

I am sure, the first time you forgotten to disable the UAC, for any reason, and with the same reg file after desabling the UAC works fine!

However you prefer to keep a registy key with an error! I don't understand.

Cheers

Posted

Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported...

Thank for your patience and help...

I am sure, the first time you forgotten to disable the UAC, for any reason, and with the same reg file after desabling the UAC works fine!

However you prefer to keep a registy key with an error! I don't understand.

Cheers

I add this to disable UAC, it's ok...?

Windows Registry Editor Version 5.00

;Disable User Account Control (UAC)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"ConsentPromptBehaviorUser"=dword:00000000
"EnableInstallerDetection"=dword:00000000
"EnableLUA"=dword:00000000
"EnableUIADesktopToggle"=dword:00000000
"EnableSecureUIAPaths"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
"ValidateAdminCodeSignatures"=dword:00000000
"FilterAdministratorToken"=dword:00000000

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

Posted

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

Posted

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 will try with your settings... I'll tell you the results...

Thank you very much for all... ;-)

Posted (edited)

Well, I try with your settings for disable UAC in my laptop with Windows 7 Pro x64 clean install...

Windows Registry Editor Version 5.00

[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

I delete this key from registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip]
"Path"="C:\\Program Files\\7-Zip\\"
"Path64"="C:\\Program Files\\7-Zip\\"

I try import key trough WPI with this command:

cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\7zip.reg"'];

This is log from WPI:

Archivo Log de instalación con WPI

Proceso de instalación iniciado en: lunes, 18 de junio de 2012 14:28:05

Información de WPI:
Versión=8.5
Used launcher=true
Versión de Internet Explorer=8.0

Conexión a Internet=true

Sistema Operativo
Sistema Operativo=Win7
Edition ID=Not found
ServicePack=1

Arquitectura
Arquitectura=GenuineIntel
String de Arquitectura=Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
ID de Arquitectura=Intel64 Family 6 Model 42 Stepping 7
Número de Procesadores=4
MHz=2394
Tipo de Arquitectura=AMD64
SysArch6432=NOT_DEFINED
Bits de Arquitectura=64
64 Bits Reales=true

Archivo de Opciones=K:\WPI\UserFiles\useroptions.js
Archivo de Configuración=K:\WPI\UserFiles\config.js
Network file=K:\WPI\UserFiles\networkoptions.js

// Window tab
Resolution=0
MainWindowWidth=1024
MainWindowHeight=768
MainWindowX=-1
MainWindowY=-1
InstallerWindowX=25
InstallerWindowY=25

// General tab
NumCols=3
// ---
Timer=true
Seconds=30
StartBeepAtSecs=10
// ---
Language='es'
// ---
DefaultInstallPath='default'
CustomInstallPath=['']
// ---
AbortInstallIfFailure=false
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=false
ShowCommandInInstaller=true
ShowInstallerImages=true
AlwaysShowOutputWindow=false
EjectCDWhenDone=false
DoNotShowIfUSB=false
DisableHotKeys=false

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

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

// Sounds tab
SndWPIStartCB=false
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='Royale'
Skin='SkyBlue'
BgPicture=''
// ---
LayoutStyle=1
// ---
ShowToolTips=true

Variables globales:
%OSLANG%=
%WPIPATH%=K:\WPI
%ROOT%=K:
%CDROM%=
USB=K:
%DOSPATH%=
%SYSTEMDRIVE%=C:
%WINDIR%=C:\Windows
%PROGRAMFILES%=C:\Program Files
%TEMP%=C:\Users\ADMINI~1\AppData\Local\Temp
%SYSDIR%=C:\Windows\System32
%ALLUSERSPROFILE%=C:\ProgramData
%USERPROFILE%=C:\Users\Administrador
%APPDATA%=C:\Users\Administrador\AppData\Roaming
%COMMONPROGRAMFILES%=C:\Program Files\Common Files

Lista de los programas a instalar:
Trucos Windows-7 Varios

1 Elementos, 1 Comandos

-----

lunes, 18 de junio de 2012 14:28:05
Programa: Trucos Windows-7 Varios
ID Único: TRUCOSW71
Ordenar: 000001
Categoría: Sistema
lunes, 18 de junio de 2012 14:28:06 - cmd1 Enhorabuena (Código devuelto 0): "C:\Windows\SysWOW64\RegEdit" /S "K:\WPI\Install\Tweaks\7zip.reg"
lunes, 18 de junio de 2012 14:28:06 - Instalación Finalizada.

-----

Número de instalaciones fallidas: 0

Proceso de instalación finalizado en: lunes, 18 de junio de 2012 14:28:06

The HKLM key is not imported... :huh:

7zip.reg

Edited by alfreire
Posted (edited)

Well, my problem isn't reg files... my problem is that any key from HKLM in not imported... reg values are for examples... I might not explained well...

The key attached for 7-zip, it's added to registry by 7-zip 9.27 x64 Alpha version program, not created by me...

p.d.: If you want, give me any HKLM valid key to test...

Edited by alfreire
Posted

Like I can see, you have no error inside your last test using WPI!

Yes, but why not import...? it's by Admin privileges...? I also try add reg key with WinRAR sfx and not work too... If I make cmd file (for run reg file) and run directly work, but if I run cmd file trough WPI don't work... :no:

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...