Is there a way to protect Wine?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Is there a way to protect Wine?

Post by DOS4dinner »

This may seem weird, but is there a way to ensure that an installer cannot destroy your wine files? I have a game that, I think, may try to install some weird directX stuff without giving you the option, but I'm not sure, and I don't want to ruin my other games. I installed it once and Jazz Jackrabbit 2 stopped working, but that may have been the cause of something else.

So...what can I do? Is there some easy way of protecting wine and the other games? Or has there never been an installer that force installed directx?

The game is a demo of Hype: The time quest, available here if someone wants to test it: http://www.download.com/Hype-The-Time-Q ... 32795.html
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

man wine

You will see a WINEPREFIX option. Each prefix is basically a complete independant version of the drive C and so on. So yes by using prefix you can protect self from these evils. Please note these evils also happen under windows.
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Post by DOS4dinner »

Just what I needed. Now...How do I use WINEPREFIX?
Tomas Carnecky

Is there a way to protect Wine?

Post by Tomas Carnecky »

DOS4dinner wrote:
Just what I needed. Now...How do I use WINEPREFIX?
in a terminal, type this:
WINEPREFIX=$HOME/.wine-yournewgame wine /path/to/the/installer.exe

it will create a new windows 'installation' (C:\ and all that stuff)
under $HOME/.wine-yournewgame

tom
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Post by DOS4dinner »

Thanks!
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Post by DOS4dinner »

Wait...so, now do I just put the .exe in the .winehypegame folder I made and run? I noticed that under the windows and system 32 folders there are no files...is that normal? does it just connect that back to the main wine installation? If so, doesn't that mean it could still wreck the other programs? Sorry for all the questions...
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

DOS4dinner wrote:Wait...so, now do I just put the .exe in the .winehypegame folder I made and run?
No you missed this part:

Code: Select all

WINEPREFIX=$HOME/.wine-yournewgame
WINEPREFIX is an environment variable you have to set it explicitly.
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Post by DOS4dinner »

sorry for the confusion. I entered WINEPREFIX=$HOME/.wine-yournewgame into the terminal and ran it. It created the new .winehypegame folder. Now, how do I use it? (Forgive me, I'm a bit of a n00b to wine and Linux)
Tlarhices
Level 4
Level 4
Posts: 101
Joined: Sun Mar 02, 2008 9:28 pm

Post by Tlarhices »

DOS4dinner wrote:sorry for the confusion. I entered WINEPREFIX=$HOME/.wine-yournewgame into the terminal and ran it. It created the new .winehypegame folder. Now, how do I use it? (Forgive me, I'm a bit of a n00b to wine and Linux)
Each time you want to run this game, instead of :

Code: Select all

wine mygame.exe
Use :

Code: Select all

WINEPREFIX=$HOME/.wine-yournewgame wine mygame.exe
It will tell wine where the drive_c and configuration is.

For the applications in your default wine prefix (~/.wine) you can use wine directly.

If you want to run it from a shortcut, you will have to modify the shortcut to take into account the WINEPREFIX=$HOME/.wine-yournewgame part.
DOS4dinner
Level 2
Level 2
Posts: 36
Joined: Thu Aug 07, 2008 3:50 pm

Post by DOS4dinner »

That makes sense. Thank you all!
Locked