Results 1 to 5 of 5
  1. #1
    Experienced User
    Overall activity: 11.0%

    Join Date
    May 2008
    Location
    Decatur, Illinois, United States
    Posts
    193
    Liked
    16 times
    Points
    6,978

    WinRAR Installer system folder problem

    I don't know if anyone here knows about creating installers with WinRAR, but I have a slight problem.

    Several people in my gaming clan crash all the time in Call of Duty 2 and unfortunately they hard reset because it was the only way they knew to get out of it. I crash as well, but I know that you can blindly do anything by task manager or Run. All you have to do is while your screen is black, press Alt+tab and then WIndows+r for run or ctrl+shift+Esc to bring up Task Manager and from there we can type whatever the name of teh process isand then delete and enter and it will kill the task and pull us out of the black screen.

    I have created a batch file named 2.bat that kills the process so all we have to do is place the batch file in the System32 directory and then when we crash alt+tab, Run and type 2 and enter and it kills the process.
    The batch file is basic just:

    Code:
    @echo off
    TASKKILL /f /im CoD2MP_s.exe
    Now that you understand what I have made here is my problem:
    I wanted to create and installer for this file so that the people in my clan that I give it to that aren't really computer saavy can just install itand not have to browse the folder (believe it or not some of them have trouble browsing folders, lol).
    When creating my installer with WinRAR I set the directory as %WINDIR%\System32, but I have a 64 bit system with (x86) capability and when it installs the file it goes to my SysWOW64 folder instead, so something in Windows is re-directing the folder from System32 to SysWOW64, but when I run a line from RUN it will only execute from the System32 folder, is there a way to install to System32 in a 64 bit system without re-directing?

  2. #2
    Junior Techie
    Overall activity: 0%

    Join Date
    Sep 2009
    Posts
    106
    Liked
    0 times
    Points
    2,440
    Greetings,

    I think that the path to system directory inside %WINDIR% (where taskkill is located) should be by default mapped in %PATH% variable. What I want to say by this, is that you should be able to successfully execute taskkill command from anywhere on a system, so there might be no need to place your batch file deeper than %WINDIR% or to put in %HOMEPATH%, which imo would be a more appropriate place.

  3. #3
    Experienced User
    Overall activity: 11.0%

    Join Date
    May 2008
    Location
    Decatur, Illinois, United States
    Posts
    193
    Liked
    16 times
    Points
    6,978
    Alright thank you, I just tried running my batch file from the root Windows directory via RUN and it worked. I have attempted to execute the batch file from other folders through out the system via run without success and so I had figured I had to out the batch where ever the CMD was and that's why I put it in System32. Thank you very much!
    Last edited by Lateralus; 01-14-2010 at 04:29 PM.

  4. #4
    Junior Techie
    Overall activity: 0%

    Join Date
    Sep 2009
    Posts
    106
    Liked
    0 times
    Points
    2,440
    If taskkill path is not set system-wide by default, you can also set it manually just for the purpose of your batch:

    Code:
    @echo off
    set path=%WINDIR%\System32;%WINDIR%\SysWOW64
    TASKKILL /f /im CoD2MP_s.exe

  5. #5
    Experienced User
    Overall activity: 11.0%

    Join Date
    May 2008
    Location
    Decatur, Illinois, United States
    Posts
    193
    Liked
    16 times
    Points
    6,978
    Oh wow... thank you.

 

 

Similar Threads

  1. Problem because of winrar
    By vickypark in forum General Forum
    Replies: 11
    Last Post: 10-12-2010, 02:20 AM
  2. winrar problem
    By kushtra24 in forum General Forum
    Replies: 2
    Last Post: 05-13-2010, 06:14 PM
  3. [WinRAR] some problem with it
    By kwfine in forum Software
    Replies: 1
    Last Post: 06-03-2009, 08:27 AM
  4. Recycler and System Volume folder
    By yao90 in forum Spyware/Viruses
    Replies: 6
    Last Post: 10-14-2008, 09:28 PM
  5. SFX Installer with WinRAR
    By Lateralus in forum Software
    Replies: 2
    Last Post: 05-31-2008, 04:26 AM
All times are GMT +8. The time now is 09:14 AM.