System32

Blitz3D Forums/Blitz3D Programming/System32

Yue(Posted 2011) [#1]
Hello I'm a newbie, I've always been.
Anyway, I wonder if all the libs that are used in Blitz3D, you should put them at the time of installation in System32, on the other side there is this directory windows 7 ("System32"). and if so it is advisable to send all the libs and what advantages or disadvantages you have about it.


Kryzon(Posted 2011) [#2]
It's easier to keep them in the same folder as the .EXE file. When the .EXE is ran it'll search for DLLs in the folder it's currently located, and also in System32.
This way you avoid having any trouble copying files to folders that might not be there. It's also easier for the user to uninstall your program later on.


Yasha(Posted 2011) [#3]
The only advantage is that libraries that are likely to be used by many programs aren't duplicated throughout the system, but instead stored in one place and as one version.

The vast majority of B3D userlibs are custom wrappers that won't work with any other applications, so there's no real reason for them to be visible to the rest of the system.

If your program does rely on a standard version of a common utility, it's probably better to flag it as required, and prompt the user to obtain it separately for themselves if they haven't got it already. If it's not common enough that you wouldn't feel happy telling someone they should have it installed, it doesn't fit in this category and you should package it with the main program.

Oh, and something else: you (as an application designer) should never be writing to a user's system folders anyway.


Yue(Posted 2011) [#4]
Thanks! Tonight we sleep at night because I learned something new.