PDA

View Full Version : Install choice



NewsArchive
06-24-2016, 02:03 AM
I have an App that can be installed normally or as a Portable App. I
would like to have a SB script that offers a choice but I don't know how
to do this.

Does anyone have a sample script that shows how this is done?

If it's in the SetupBuilder manual, I missed it.

TIA,

Bob

NewsArchive
06-24-2016, 11:59 AM
Hi Bob,

> I have an App that can be installed normally or as a Portable App. I would
> like to have a SB script that offers a choice but I don't know how to do
> this.
>
> Does anyone have a sample script that shows how this is done?
>
> If it's in the SetupBuilder manual, I missed it.

I can create a demo project, no problem. So the "normal" choice installs
the .exe, .dlls and Shortcut(s) and the "portable" choice installs just one
portable .exe (and a Shortcut to it?), right?

Friedrich

NewsArchive
06-24-2016, 12:00 PM
Friedrich,

Both the normal and portable installs, install the .exe and .dll's. The
portable install does not need a shortcut as it installs a folder with
info that is read by PortableApps. Also, I normally add a folder to the
portable App that includes CodeJock styles.

Normal App
C:\Program32\msgtools\MyApp.exe + .dll's
C:\Users\<User>\AppData\Roaming\msgtools\data\<dataFiles>
C:\Users\<User>\AppData\Roaming\CjStyles\<styles>

Portable App
<Drive Letter>\PortableApps\msgtools\MyApp+.exe + .dll's (+ means it is
compiled as a Portable App)
<Drive Letter>\PortableApp\msgtools\<dataFiles>
<Drive Letter>\PortableApps\CjStyles\<styles>

I hope this is clear. And, Thank you.

Bob

NewsArchive
06-25-2016, 10:34 AM
Friedrich,

I've got this solved except for 2 problems. I set the original
destination path to "D:\PortableApps\msgTools" and, when I run the
script, I change the "D" to "G". I then change an internal variable to
match the new location, and almost everything install correctly.

The only problem remaining is the the "Uninstall" apps are copied to the
original location on drive "D" and the App will not start.

I seems that even though I changed %_SB_INSTALLDIR% to the updated
location, it is stored in some other variable that is used by
"Uninstall", etc.

I'm sure you know the answer. If you want, I can email the script
directly to you.

Thanks,

Bob

NewsArchive
06-26-2016, 03:33 AM
Friedrich,

I should also add that I do not care that the Uninstall portion is not
copied correctly. Since nothing is written to the Registry when
"Portable Install" is selected, the user can just delete the folder to
remove all traces of the app if they chose.

Bob

NewsArchive
06-27-2016, 09:37 AM
Hi Bob,

> I'm sure you know the answer. If you want, I can email the script directly
> to you.

Please send me the project file (sbp) and I will make the appropriate
changes for you.

Friedrich

NewsArchive
06-27-2016, 09:38 AM
Friedrich,

The script is on the way.
Thank you.

Bob

NewsArchive
06-29-2016, 06:18 AM
I just want to let everyone know that Friedrich solved the problem.

Thank you, Friedrich.

Bob

NewsArchive
06-29-2016, 06:18 AM
> I just want to let everyone know that Friedrich solved the problem.
>
> Thank you, Friedrich.

You are very welcome, Bob. And thanks for the update!

Friedrich