Jump to content

alfreire

Member
  • Posts

    124
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Spain

Everything posted by alfreire

  1. http://www.msfn.org/board/index.php?app=core&module=attach&section=attach&attach_id=34496 This file by example... I export that key from registry, delete key and try import with WPI, but not work... If run reg file directly work perfect...
  2. 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...
  3. 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...
  4. 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... 7zip.reg
  5. I will try with your settings... I'll tell you the results... Thank you very much for all... ;-)
  6. 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
  7. 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"'];
  8. Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported... Thank for your patience and help...
  9. The registry key, like I said, isn't correct even if you downloaded the reg file! I agree with you, there must be an error in creation, but it works, I don't know why...
  10. I copy reg from here http://www.askvg.com/add-cascading-menu-for-restart-shut-down-hibernate-and-other-power-shortcuts-in-desktop-context-menu-of-windows-7-and-8/ Also don't work Windows Registry Editor Version 5.00 ;Administrar (sólo para ordenar el menú alfabéticamente, añade un 0 antes del nombre) [-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage] [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\0Manage] @=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\ 79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\ 00,34,00,30,00,30,00,00,00 "MUIVerb"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\ 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\ 00,6d,00,79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,\ 2c,00,2d,00,34,00,30,00,30,00,00,00 "SuppressionPolicy"=dword:4000003c "HasLUAShield"="" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\0Manage\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,6f,00,\ 6d,00,70,00,4d,00,67,00,6d,00,74,00,4c,00,61,00,75,00,6e,00,63,00,68,00,65,\ 00,72,00,2e,00,65,00,78,00,65,00,00,00 ;Administrador de Dispositivos [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\1DevMgr] @="Administrador de Dispositivos" "icon"="control.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\1DevMgr\command] @="mmc /s devmgmt.msc" ;Administrador de discos [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\2DiskMgmt] @="Administrador de Discos" "Icon"="dmdskres.dll" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\2DiskMgmt\command] @="mmc /s diskmgmt.msc" ;Services [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services] @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\ 68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,32,\ 00,32,00,30,00,35,00,39,00,00,00 "SuppressionPolicy"=dword:4000003c "HasLUAShield"="" "Icon"=hex(2):66,00,69,00,6c,00,65,00,6d,00,67,00,6d,00,74,00,2e,00,64,00,6c,\ 00,6c,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\ 63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,\ 00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,\ 74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,\ 00,73,00,2e,00,6d,00,73,00,63,00,00,00 ;Task Manager [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Task Manager] "Icon"=hex(2):74,00,61,00,73,00,6b,00,6d,00,67,00,72,00,2e,00,65,00,78,00,65,\ 00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Task Manager\command] @="taskmgr.exe" ;MSConfig [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\MSConfig] "Icon"=hex(2):6d,00,73,00,63,00,6f,00,6e,00,66,00,69,00,67,00,2e,00,65,00,78,\ 00,65,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\MSConfig\command] @="msconfig.exe" ;Command Prompt [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\CMD] @="Command Prompt" "icon"="cmd.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\CMD\command] @="cmd.exe" ;Regedit [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit] @="Regedit" "icon"="regedit.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit\command] @="regedit.exe" ;Desinstalar Programas [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs] @="Desinstalar Programas" "Icon"=hex(2):77,00,65,00,78,00,74,00,72,00,61,00,63,00,74,00,2e,00,65,00,78,\ 00,65,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command] @="control appwiz.cpl" ;Notepad++ [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Notepad] "icon"="C:\\Program Files (x86)\\Notepad++\\notepad++.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Notepad\command] @="Notepad++.exe" ;Windows Update [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update] "Icon"=hex(2):77,00,75,00,63,00,6c,00,74,00,75,00,78,00,2e,00,64,00,6c,00,6c,\ 00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update\command] @="wuapp.exe" ;Abrir CMD en el Explorador con el botón derecho [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Abrir CMD aquí" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /s /k pushd \"%V\""
  11. Works: [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] Do not work: [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]
  12. prog[pn]=['Trucos Windows-7 Power Menu']; uid[pn]=['TRUCOSW72']; ordr[pn]=[2]; dflt[pn]=['no']; forc[pn]=['no']; bit64[pn]=['no']; cat[pn]=['Sistema']; configs[pn]= pfro[pn]=['no']; cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu.reg"']; cond[pn]=['getOSver()=="Win7"']; desc[pn]=['Power Menú en Mi PC y Escritorio']; pn++; I don't know why, but [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] don't work menu, [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] yes work...
  13. Reg file it's not problem, if I run reg file and import to registry all values work ok, but trough WPI HKLM values not imported...
  14. I try launch reg file trough cmd batch, but it's same result... reg files import ok, but HKLM values are not imported...
  15. Yes, it's this cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu.reg"']; HKCR values are imported, but HKLM values not... Regards... ;-)
  16. I try import reg file trough WPI with {REGEDIT} command, but HKLM values are not imported... how I could import HKLM values silently...? I use Win 7 Pro x64 with Admin user and UAC disabled... Reg file: 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" [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] "MUIVerb"="Power" "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] @="Bloquear" [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] @="Cerrar Sesión" [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] @="Cambiar de Usuario" [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] @="Suspender" [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] @="Hibernar" [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] @="Reiniciar" [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] @="Apagar" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command] @="Shutdown -s -f -t 00" If I run regedit /s regfile.reg in CMD console, work perfect, bu if I run regfile.cmd (with same command) trough WPI, I have seme result, HKLM values not imported... I try regfile.reg trough WinRAR sfx also, but result it's same... Regards... ;-)
  17. Hello... after much searching, I found script (don't remember where) to avoid message "There is not disk in drive" when there is a memory reader in PC... I test it and work perfect... It's this: @ECHO OFF SETLOCAL (SET DRIVE=) FOR /F "USEBACKQ TOKENS=2 DELIMS==" %%# IN (`WMIC DATAFILE WHERE^ "PATH='\\WPI\\' AND FILENAME='WPI' AND EXTENSION='exe'"^ GET Name /VALUE^|FIND "="`) DO SET "DRIVE=%%~d#"&SET "FPATH=%%#" START "" "%DRIVE%\WPI\WPI.exe" exit Attached Setupcomplete.cmd Regards... ;-) Setupcomplete.zip
  18. It's correct, or is {JSCRIPT}=CreateShortcut("Ccleaner","%programfiles%\ccleaner\CCleaner.exe","","StartMenu","") ??? Thank's... ;-) Any reply...? Regards... ;-)
  19. It's correct, or is {JSCRIPT}=CreateShortcut("Ccleaner","%programfiles%\ccleaner\CCleaner.exe","","StartMenu","") ??? Thank's... ;-)
×
×
  • Create New...