unattend install: INSTALL.inf (wincmd.ini -> %APPDATA%\GH

German support forum

Moderators: Hacker, Stefan2, white

Post Reply
Nicholas
Junior Member
Junior Member
Posts: 3
Joined: 2016-11-17, 05:54 UTC

unattend install: INSTALL.inf (wincmd.ini -> %APPDATA%\GH

Post by *Nicholas »

Hallo Community,

die wincmd.ini wurde in das Installationsimage tc900x64_rc6.exe hinzugefügt und dem Eintrag iniloc der INSTALL.INF der Wert %APPDATA%\GHISLER hinzugefügt.

Code: Select all

[auto]
iniloc=%APPDATA%\GHISLER
Ich habe gedacht, dass durch diesen Eintrag bei der Installation die wincmd.ini nach %APPDATA%\GHISLER kopiert wird. Aktuell wird die wincmd.ini aber in das Installationsverzeichnis (%PROGRAMFILES%\totalcmd) kopiert, was nicht wirklich brauchbar ist, weil jede Konfigurationsänderung zu einer Fehlermeldung wegen fehlender Schreibberechtigung in %PROGRAMFILES%\totalcmd führt.

Daher die Frage: Gibt es irgendeine BestPractice die den Installer veranlasst, die wincmd.ini automatisch nach %APPDATA%\GHISLER zu kopieren? Oder muss dies tatsächlich mit einem zweiten Script neben dem eigentlichen Installationsprozess angestoßen werden?

Danke für aufklärende Hinweise.

N.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Leider nein - man kann zwar über die install.inf einzelne Zeilen zur wincmd.ini hinzufügen (max. 100), aber gleich die ganze Datei installieren geht so nicht.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Leider nein - man kann zwar über die install.inf einzelne Zeilen zur wincmd.ini hinzufügen (max. 100), aber gleich die ganze Datei installieren geht so nicht.
Author of Total Commander
https://www.ghisler.com
Nicholas
Junior Member
Junior Member
Posts: 3
Joined: 2016-11-17, 05:54 UTC

Post by *Nicholas »

Okay, dann muss ich auch nicht weiter suchen. Vielen Dank für die schnelle Antwort.
Nicholas
Junior Member
Junior Member
Posts: 3
Joined: 2016-11-17, 05:54 UTC

Post by *Nicholas »

Dann hier ein funktionierender Workaround, falls jemand vor dem gleichen Problem steht:

Eintrag in der unattend.xml

Code: Select all

<settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:
            <InputLocale>1031:00000407</InputLocale>
            <UILanguage>de-DE</UILanguage>
            <UserLocale>de-DE</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="ht
            <RegisteredOwner>Admin</RegisteredOwner>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
                <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
            </OOBE>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>Mount Share with Ressources as P: Drive</Description>
                    <CommandLine>cmd /c net use p: \\192.168.3.42\WIA_WDS_SHARE MyPasswd /User:Administrator /persistent:no</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                    <Order>1</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c P:\Tools\TotalCommander\tc900x64_rc5.exe</CommandLine>
                    <Order>2</Order>
                    <Description>TotalCommander mit gepatchter Installationsdatei installieren</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c copy P:\Tools\TotalCommander\wincmd.ini %APPDATA%\GHISLER</CommandLine>
                    <Description>Copy my TotalCommander-Settings to Application Data Folder</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                    <Order>3</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c copy P:\Tools\TotalCommander\wcx_ftp.ini %APPDATA%\GHISLER</CommandLine>
                    <Description>Copy my TotalCommander FTP-Presets to Application Data Folder</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                    <Order>4</Order>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
Cheers,

N.
Post Reply