PDA

View Full Version : Feedback from SB7-Install to installed INI possible?



NewsArchive
01-03-2011, 10:29 AM
Hello Friedrich and all others!

My intention is to offer the user a dialog for the paths of the
executables and the data each.

This is meant namely for those users who have decided to _not_ store the
data to %CSIDL_COMMONDOCUMENTS%\myEXE\data as I suggested. And some folks
have good reasons for that.

So - who can I help them?

When my programs are started, they first look up an INI where the
data-path is documented. If no value, then CSIDL_blabla, else
user_defined_blabla.

What will happen, if the user can decide the data-path, is, that then the
INI is still empty and therefore pointing to CSIDL_blabla. Which is NOT
good..... because its not existing then and the very first thing my
programs then will do is failing!


Is it possible to automagically maintain the INI from my SB7-install?

That would be cool!

The second best solution would be to call my Admin.EXE with a parameter
holding the new datapath, once the setup is finished.

Thanks in advance!

--
Wolfgang Orth

www.odata.de
www.kik-service.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It's five o'clock somewhere.....

NewsArchive
01-04-2011, 01:19 AM
Found it with the help from some friends! :-)

Edit INI File...

Works great! There are too many gems hidden in the right handed list!


Thanks,
Wolfgang

--
Wolfgang Orth

www.odata.de
www.kik-service.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It's five o'clock somewhere.....

NewsArchive
01-04-2011, 01:20 AM
Wolfgang,

I'm not sure if I understand the question correctly. But yes, you can edit
INI files from your SetupBuilder installer. And of course, you can let the
user select a path for the executables and the data files (even from the
same dialog). Similar to the attached screenshot (Examples Package ->
Custom Dialog Demo 3).

Or use the "Select Install Folder" dialog twice and store the result in
unique variables if you would like to use the built-in dialogs.

Does this help?

Friedrich

NewsArchive
01-05-2011, 01:12 AM
Well, when I returned, I was so happy to have apparently asked a question
that stirred up so many responses.....


> and noticed that it was posted 5 times.

I decided for this:

> Or use the "Select Install Folder" dialog twice and store the result in
> unique variables if you would like to use the built-in dialogs.

Actually once again I have forgotten your examples....

The suggested Demo 3 looks quite versatile! Will test it.

Thanks,
Wolfgang

--
Wolfgang Orth

www.odata.de
www.kik-service.de

Contact: info .ß. odata .dot. de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It's five o'clock somewhere.....

NewsArchive
01-05-2011, 03:02 AM
> Well, when I returned, I was so happy to have apparently asked a question
> that stirred up so many responses.....

<G>

>> Or use the "Select Install Folder" dialog twice and store the result in
>> unique variables if you would like to use the built-in dialogs.
>
> Actually once again I have forgotten your examples....
>
> The suggested Demo 3 looks quite versatile! Will test it.

:)

Friedrich