Jump to content
Ketarin forum
callofdutyrepo

Help setting up silent install

Recommended Posts

Currently my setup is set to Start process {file}.  This works with opening the .exe after Ketarin downloads the file and I can click next and the map installs to the proper directory that the map files are stored for the game.  However if I add the /S (NSIS) argument the installer does install silently, but it just installs the map to the same folder the .exe file is in.  I'm pretty new to this so as much help setting the proper install path i can get would be great.

Current setup of map installer.

- Maps downloads are .exe files, and use the NSIS installer.

- opening .exe I have to click Next> then click I Agree to the License Agreement.

- Map begins installing and the maps folder is placed in C:\Users\username\AppData\Local\Activision\CoDWaW\mods

- The map folder will always be located at the same directory, except for the username will be different.

 

 

Share this post


Link to post
Share on other sites

I don't play COD, so this is based only on what you said. Since the maps are located in the User folder you have three options:

1) You can use the "/D" switch to set the installation directory:

"{file}" /S /D="%LocalAppData%\Activision\CoDWaW\mods"

2) You can copy the EXE file there and run it from that folder:

copy /y "{file}" "%LocalAppData%\Activision\CoDWaW\mods\"
"%LocalAppData%\Activision\CoDWaW\mods\{file:filename}" /S

3) If you want to install it for all users on a device you can run it from the download folder and copy the files into each mods folder (assumes that the download folder has ONLY the installation file and nothing else in it):

"{file}" /S
for /d %%u in (c:\users\*) do (
    robocopy "{file:directory}" "%%u\AppData\Local\Activision\CoDWaW\mods" /xf "{file:filename}"
)

 

Share this post


Link to post
Share on other sites

Option 1 worked great, thank you so much.  One more question is there a way I could apply the argument to all the maps I have added so far?  Lol I have added 700 maps, it would make it much easier to add the argument only once.

Share this post


Link to post
Share on other sites

Yes, two ways I can think of.

Option 1) Edit the XML: it might be a bit of a challenge if you're not comfortable with XML.

The easy way is to find+replace the command in the raw XML. 

Select-all in the main Ketarin interface then copy (CTRL+C).

Open Notepad++ (or your favorite text editor with accurate find & replace support).

Find & replace the previous command(s) with the new one.

Select all, copy, paste back into Ketarin. 

 

Option 2) Use a database editor to assign the ExecuteCommand value to the new command. 

Use DB4S to open the jobs.db file. "Browse Data" for the jobs table. Either paste the command into the ExecuteCommand column for each of your maps or use SQL to change it on several at once. If you're comfortable with using an SQL command you can use one of these, but I recommend you backup your jobs.db file first.

This one applies the new command to EVERY profile you have:

UPDATE jobs SET ExecuteCommand = '"{file}" /S /D="%LocalAppData%\Activision\CoDWaW\mods"';

This one applies the new command to ONLY the profiles in the category "Mods":

UPDATE jobs SET ExecuteCommand = '"{file}" /S /D="%LocalAppData%\Activision\CoDWaW\mods"' WHERE Category='Mods';

 

Good luck.

Share this post


Link to post
Share on other sites

Thank you so much for this, I have ran into a bit of a problem, since 1/4 of the installers are not working properly.  Anyways once I convert the installers I'll use the above to apply the changes.

Share this post


Link to post
Share on other sites

So I've come back to trying to add the silent install but I am having problems with the "/D" switch. This is my setup, but when I run install, the .exe just installs to where the .exe was downloaded to and not to %LocalAppData%\Activsion\CoDWaW\mods".2020-06-01_8-51-28.jpg.14869bd1a730ef132c45a6a826c31878.jpg

What am I doing wrong?  Any help will be much appreciated.

Share this post


Link to post
Share on other sites

Ok I figured  out why it wasn't installing to the correct path.  It was because the ("") quotes around "%LocalAppData%\Activsion\CoDWaW\mods", removing the quotes installed the .exe to the correct path.  It's strange because earlier I did remove the quotes and try to download, but upon saving the settings the quotes returned, although I am certain I removed them.   I guess I just have to be more careful saving the settings and make sure the quotes are not there.

Share this post


Link to post
Share on other sites

I've tested this method with 20 .exe files, 16 out of the 20 installed just fine and the .exe's were installed silently to the correct folder.  However 4 of the .exe downloaded fine, and said the installation was successful, but when I checked the the folder where they were suppose to install to they were no where to be found. 

Here is one of the .exe's I'm having trouble with: https://1drv.ws/u/s!AjyAcx9AtLxQhlao3RaXFJtCKi-N?e=oWbj1m

If anyone could test this and be able to use /S silent install, and /D to install to a specific folder, that would be great.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.