Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problem with installer

Author
Message
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 16th Apr 2012 22:45
Hello Ya'all:

I'm trying to make an installer. I have my program to be installed embedded in the media of the project. I've tried two different techniques to try to write the file during the installation - one is to make a memblock out of the file, then make the destination file from the memblock. The other way is simply with the copy file command. Either way, I get the same result - a 0-byte file. What am I doing wrong?

Lance
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 16th Apr 2012 23:50
Hello Ya'all:

I kind of have an update - it appears the new build of DBP seems to ignore embedded media. I embedded an image, and thought that was working great, then moved the program to another system, where it says "file not found." I think the installer has the same problem.

Lance
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 19th Apr 2012 16:33
Anyone?
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 20th Apr 2012 22:00
I am finding it really hard to believe that no one on the forum has ever made an installer...
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 21st Apr 2012 01:26
erm.. not sure what to write to help you out.
and im not sure wich way you do, but as far i know dbp, the best way to make an installer,
is to make:
1) there are some winzip plugins, use one to make passworded archive for your install data, and when you install it, just extract it whatever you want.

2) same one as 1st one, but instead of doing it all inside the archive, make your own file format, import all the files into one file, save the data position on different file.

3) easy way: no need to compile any file into anything, just make an install data dir where all the files should be, and also make an install.ini file so the installer will know wich file should be copied, and to wich folder.

those are the 3 ways the best for the dbp.
if one of them suits you more, i can explain you more about each way.

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 21st Apr 2012 02:55
Hello Sergey K:

Thank you for your kind response. I think I found the problem - it is a bug in the latest DBP that wasn't in the previous version (and it's intermittent and very annoying). In the previous version, when you created a project, it created a project folder and saved the files in the folder. In this version, it is intermittent, and sometimes creates a project file in addition to a program file, but no folder. If I can get it to create a project folder, then when I import the media, I get a warning that the media is not in the media folder in the project folder, and asks if I want to copy the media there - when this occurs, everything seems to work. If, on the other hand, it creates a project file, then if I import the media, there is no option to copy it to a media folder, and it is ignored by the program, even though it is there, and if I manually put it in the projects\media folder, although it imports from there (also with no warning), it is also ignored.

So what I think I have to do is create another set of projects (which hopefully create the folders), and import the media into those projects, then bring the programs into the projects and recompile them.

Basically, the hierarchy is like this:

InstallProgram
StartupProgram
UninstallProgram
MainProgram
logo.jpg

Lance
Statue
19
Years of Service
User Offline
Joined: 16th Nov 2006
Location: Monterey Hills, CA
Posted: 21st Apr 2012 02:59
Sorry - forgot the dependency (I thought DBPro didn't have any). Also the hierarchy didn't post too well:

InstallProgram
---StartupProgram
---d3dx9_31.dll
---UninstallProgram
---MainProgram
------logo.jpg

Lance
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 21st Apr 2012 03:15
what are you mean dependency?

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 21st Apr 2012 06:34
@statue: the installer is very beautiful project however, making an installer, means that you prefer to put your files in the program files directory, start menu, control panel.

unfortunately, DBpro file transfer commands wouldn't be able to perform components transfer to the mentioned directories as UAC is switched on for most users and you're not really expected to tell users to switch UAC off and then put it back on again.

I would be nice if the TGC put some MSI commands in DBpro libraries to help build MSI installer straight from DBpro.

Login to post a reply

Server time is: 2026-07-09 02:13:22
Your offset time is: 2026-07-09 02:13:22