JimmysDask Posted September 12, 2014 Report Share Posted September 12, 2014 Hello to the forum!! I have fallen in love with ketarin because of its features that provides to me! I had a bad time trying to auto install apps when I was at my clients with ketarin because it was constantly trying to update the file path every time the drive letter changed.This is my solution… Maybe not the best but it has worked perfectly fine for me so far.Using a tool called rxrepl.exe I replace the drive letter to the corresponding <PreviousLocation> for each application in the xml file.This way ketarin wont bother recheck or update the file when it wont find it in the PreviousLocation position that is used to be. This also solves the problem that if I have no internet connection and it tries to update the application it will fail the hole installation!This is the part that makes this happen @echo offset source=%~dp0set rootdir=%source:~0,2%echo root directory is %rootdir%echo.%source%/rxrepl.exe --file %source%standard_apps.xml --no-backup --return-count -a --output %source%/standard_apps.xml --search "<PreviousLocation>(.*?):" --replace "<PreviousLocation>%rootdir%"%source%/rxrepl.exe --file %source%apps64.xml --no-backup --return-count -a --output %source%/apps64.xml --search "<PreviousLocation>(.*?):" --replace "<PreviousLocation>%rootdir%"%source%/rxrepl.exe --file %source%apps32.xml --no-backup --return-count -a --output %source%/apps32.xml --search "<PreviousLocation>(.*?):" --replace "<PreviousLocation>%rootdir%" So I can go on and run :Standard Apps Installecho Installing Standard Appsecho (This will take a few minutes)title Standard Installerstart /wait "" "%source%\ketarin.exe" /install="%source%\standard_apps.xml" /exit /database="%temp%\jobs.db" and it will run with no problem. I attach my full Ketarin directory so you can tinker with it. My auto install script checks also for windows version and architecture. Looking farward for advice to improove upon it! ketarin.zip Link to comment Share on other sites More sharing options...
necrox Posted September 12, 2014 Report Share Posted September 12, 2014 Hmm why not using {startuppath}\Ketarin.exe? Link to comment Share on other sites More sharing options...
JimmysDask Posted September 13, 2014 Author Report Share Posted September 13, 2014 The problem area is the previouslocation attribute in the xml file. This needs to get updated every time you change the disk drive letter and it won't if you don't have Internet and you try to install applications with the cmd commands Link to comment Share on other sites More sharing options...
floele Posted September 17, 2014 Report Share Posted September 17, 2014 previouslocation attribute in the xml file. How do you use this element from the XML? I'd think you could just use relative paths and be fine. Link to comment Share on other sites More sharing options...
JimmysDask Posted September 17, 2014 Author Report Share Posted September 17, 2014 This element is not a relative path that you can edit. The program puts it for you. And if the path (or drive letter in my case) changes and you don't have live Internet connection it ruins unattended installs because it fails the update. If this attribute is corrected the way i do it, ketarin finds the file and it is all ok. If you can show me a way that the previous location attribute in the saved XML can be turned into a relative path, it would be great. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now