Silent install open-shell ?

Discussion in 'Windows 10' started by maargueb, Apr 10, 2024.

  1. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    I am looking for an answer to my question I want to add Open shell software within the setupcomplete file, try several ways I did not succeed in installing the program by VM,
    Sorry again if I raised my problem here.
    Open-Shell (Classic-Start) 4.4.191:
    OpenShellSetup_4_4_191.exe

    Code:
    @echo off
    "%windir%\Setup\Scripts\Apps\??????
    cd \
    (goto) 2>nul&rd /s /q "%~dp0"
    del /q /f "%0"
     
  2. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    492
    849
    10
    #2 migascalp, Apr 10, 2024
    Last edited: Apr 10, 2024
    Why not ask your question in the dedicated thread !?
    [REPO/HOW-TO/CHAT] Audit/Sysprep/Generalize; Setupcomplete/Firstlogon; Silent Install
    Code:
    REM Do not show settings in first run
    Reg.exe add "HKLM\SOFTWARE\OpenShell\StartMenu" /v MenuStyle_Default /t REG_SZ /d Win7 /f >nul 2>&1
    REM silent /qb or /qn install only StartMenu and Update ADDLOCAL=StartMenu,Update
    for /f "delims=" %%i in ('dir /b "%~dp0OpenShellSetup*.exe"') do call "%~dp0%%i" /qb ADDLOCAL=StartMenu,Update
    REM Copy language setting dll in program folder
    xcopy "%~dp0fr-FR.dll" "%Programfiles%\Open-Shell\" /q /r /k /y >nul
    REM import setting
    "%Programfiles%\Open-Shell\StartMenu.exe" -xml "%~dp0MenuSettings.xml"
    REM  shutdown button setting There set to restart
    Reg.exe add "HKCU\SOFTWARE\OpenShell\StartMenu\Settings" /v "ShutdownCommand" /t REG_SZ /d "CommandRestart" >nul 2>&1
    
    Edit
    More info
     
  3. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    I was in a hurry to find the answer,
    don't know what parameter to use (")
    How do I add your answer into the setupcomplete script, without errors? Please give me a complete answer.
     
  4. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,006
    3,193
    60
    Hello @maargueb

    I do an sfx install like this:

    1 - First of all, install openshell on a virtual machine and configure my preferences, to capture OpenShell.reg
    2 - Download the MSI installers
    3 - Put everything in a folder and compress with 7z
    4 - Then create the SFX with the attached config.

    I hope it helps you!
     

    Attached Files:

  5. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    I didn't understand how to make sfx install, I need a lot of explanation. I hope this does not bother you. I am not an expert in making silent install
     
  6. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,006
    3,193
    60
  7. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    Code:
    @echo off
    title OpenShell Installer
    pushd "%~dp0"
    if exist %windir%\SysWOW64 (
        OpenShellSetup64_4_4_191.msi /qb ADDLOCAL=StartMenu
    ) else (
        OpenShellSetup32_4_4_191.msi /qb ADDLOCAL=StartMenu
    )
    REGEDIT.EXE /S OpenShell.reg
    exit
    I want to change the script text to: Is this correct?
    Code:
    @echo off
     title OpenShell Installer
     pushd "%~dp0"
    if exist "%windir%\SysWOW64\OpenShellSetup64_4_4_191.msi" /qb ADDLOCAL=StartMenu
    if exist "%windir%\SysWOW64\REGEDIT.EXE" /S OpenShell.reg
    exit
    
     
  8. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,006
    3,193
    60
    No

    the condition
    if exists %windir%\SysWOW64 means: if the OS is 64 bits, then do this...

    otherwise I mean, if it's not 64 bits, then make it 32 bits

    You can make each package separately, like this:

    OpenShellSetup64_4_4_191.msi" /qb ADDLOCAL=StartMenu

    or

    OpenShellSetup32_4_4_191.msi" /qb ADDLOCAL=StartMenu

    each package with its script
     
  9. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    Please help me edit and write the script formula correctly.

    Code:
    @echo off
     title OpenShell Installer
     pushd "%~dp0"
    if exist "%windir%\SysWOW64\OpenShellSetup64_4_4_191.msi" /qb ADDLOCAL=StartMenu
    if exist "%windir%\SysWOW64\REGEDIT.EXE" /S OpenShell.reg
    exit
     
  10. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,006
    3,193
    60
    To install x64 only:

    @echo off
    title OpenShell Installer
    pushd "%~dp0"
    msiexec /i OpenShellSetup64_4_4_191.msi /qb ADDLOCAL=StartMenu
    REGEDIT.EXE /S OpenShell.reg
    exit

    This above for CMD.

    You can also do it directly in WinRAR, without CMD.

    Only change the "Run after extraction" field.

    Replace with:

    msiexec /i OpenShellSetup64_4_4_191.msi /qb ADDLOCAL=StartMenu
    REGEDIT.EXE /S OpenShell.reg

    Look at the attached image.
     

    Attached Files:

  11. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    36
    10
    Big thank you bro, thanks alot for ur work and effort and be blessed!

    Code:
    @echo off
    title OpenShell Installer
    pushd "%~dp0"
    msiexec /i OpenShellSetup64_4_4_191.msi /qb ADDLOCAL=StartMenu
    REGEDIT.EXE /S OpenShell.reg
    exit