SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-05-21, 06:02 PM   #16
tillywern
Nub
 
Join Date: Oct 2006
Posts: 2
Downloads: 0
Uploads: 0
gear Another way with one problem to solve.

So I didn't want to disable UAC and the whole windows task seemed crazy... So I tapped into running SH4.exe from cmd.exe run as administrator.

What works:
- You get a shortcut
- Launches the game in the foreground

What sorta doesn't work"
- You end up with the SH4 folder that is usually in your %USER%/Documents located in C:/. In other words, your user config is now in c:/SH4. Small price to pay?

Ok so this is how I did it.
1. Create a shortcut to cmd.exe on your desktop.
2. Open up the shortcut "Properties" and make the following changes.
a. Where it says "Target", add /c and then the path to your SH4.exe. So for me it the target now looks like;
%windir%\system32\cmd.exe /c "C:\somedir\Ubisoft\SilentHunterIV_WotP\sh4.ex e"
b. Click the "Advanced" button and check "Run as Administrator"
c. (optional but coolness) Click the "Change Icon..." button. Navigate to your SH4 install directory and select SH4.exe. This will allow you to pick the icon.
d. (just cause) Change the "Start In" to some directory other than the default one. I just don't like the idea of leaving the default one that was set when you created the shortcut because I am no Windows Admin and I don't know what it does.

Things I tried to solve the whole C:/SH4 deal.
1. I tried changing the "Start In" to the Documents location for the user I log in as. This is where you normally find the SH4 dir with your user config and whatnot.
2. Giving permissions to the user Documents directory to the Administrator account.
3. Explicitly moving to the the user Documents directory before starting the program.

So far all of these have failed to create the desired result. Maybe someone with a little more Windows admin experience can figure this out.

I am no security expert but I don't think this is any less secure than using a running task. Surely it must do something similar. The admin privilege only exists while the game runs. Certainly it is better than disabling UAC on the whole system.

Hope this helps.
tillywern is offline   Reply With Quote
Old 10-05-21, 11:59 PM   #17
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 27,657
Downloads: 22
Uploads: 0


Default Welcome back!

tillywern! after a 15 year silent run since 2006! great second post!
__________________

"Only two things are infinite; The Universe and human squirrelyness; and I'm not too sure about the Universe"

Last edited by Aktungbby; 10-07-21 at 11:21 AM.
Aktungbby is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.