How to make Salamander "portable" for an USB-stick ?
Posted: 16 Sep 2010, 11:10
The Salamander is still not portable, but you can do it easily with an Autoit script:
#NoTrayIcon
RunWait("regedit.exe /E " & @ScriptDir & "\temp.reg HKEY_CURRENT_USER\Software\Altap")
RunWait("regedit.exe /S " & @ScriptDir & "\config_.reg")
RunWait(@ScriptDir & "/salamand.exe", "", @SW_MAXIMIZE)
RegDelete("HKEY_CURRENT_USER\Software\Altap")
If FileExists(@ScriptDir & "\temp.reg") Then
RunWait("regedit.exe /S " & @ScriptDir & "\temp.reg")
FileDelete(@ScriptDir & "\temp.reg")
EndIf
Compile (Autoit) that script (Salrun.au3) and run it in the root directory of Salamander on USB-stick. It works well and fast also if on the host PC is another Salamander installed. (Script and EXE is attached)
#NoTrayIcon
RunWait("regedit.exe /E " & @ScriptDir & "\temp.reg HKEY_CURRENT_USER\Software\Altap")
RunWait("regedit.exe /S " & @ScriptDir & "\config_.reg")
RunWait(@ScriptDir & "/salamand.exe", "", @SW_MAXIMIZE)
RegDelete("HKEY_CURRENT_USER\Software\Altap")
If FileExists(@ScriptDir & "\temp.reg") Then
RunWait("regedit.exe /S " & @ScriptDir & "\temp.reg")
FileDelete(@ScriptDir & "\temp.reg")
EndIf
Compile (Autoit) that script (Salrun.au3) and run it in the root directory of Salamander on USB-stick. It works well and fast also if on the host PC is another Salamander installed. (Script and EXE is attached)