PDA

View Full Version : Feature Request Installer Flags



NewsArchive
03-29-2009, 12:15 AM
Hi Friedrich,

it would be nice, if there is an installer flag like this:

Pos 14 - "on" if installer is not a full setup but a patch

Markus

NewsArchive
03-29-2009, 12:15 AM
Hi Markus,

>
> it would be nice, if there is an installer flag like this:
>
> Pos 14 - "on" if installer is not a full setup but a patch
>

But what would be the definition of a "patch"? Even a full install can
include binary "patches". For example, your setup.exe provides the
installation of different editions (Standard, Professional, Enterprise).
Instead of including three versions of your main application executable, you
include one full application executable (Standard Edition) and two binary
patches that can bring the Standard Edition executable to Professional or
Enterprise Edition.

So this install is a "full" and a "patch" install.

Friedrich

NewsArchive
03-29-2009, 12:16 AM
I'm sorry, I didn't know that this "mixed mode" is possible. I still do
not know how this could be done. Can you provide a small example?

Markus Zander

NewsArchive
03-29-2009, 12:20 AM
> I'm sorry, I didn't know that this "mixed mode" is possible. I still do
> not know how this could be done. Can you provide a small example?

Maybe the following helps?

http://www.lindersoft.com/forums/showthread.php?t=2541

In the above scenario, a customer had to provide two different versions of
the same application (one for Vista and another one for non-Vista machines).
On non-Vista machines, the installer "patched" the application to the
non-Vista version.

Does this help?

Friedrich

NewsArchive
03-29-2009, 12:20 AM
Thank you very much. Good example. So I have to change my feature request:

It would be nice, if there is an installer flag like this:

Pos 14 - "on" if Setup was build with Patch Generation enabled

or

Pos 14 - "on" if Setup contains patch files

Markus

NewsArchive
03-29-2009, 12:20 AM
> Thank you very much. Good example. So I have to change my feature request:
>
> It would be nice, if there is an installer flag like this:
>
> Pos 14 - "on" if Setup was build with Patch Generation enabled
>
> or
>
> Pos 14 - "on" if Setup contains patch files

I see what you are trying to do. But the problem is that "Disable Patch
Generation" is not an installer setting at all. It's a "Generator Setting"
and only visible at compile time to control whether to add patch objects or
not. %_SB_INSTALLERFLAG% does not include any "compile time" information.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-29-2009, 12:22 AM
At compile time? Well. What about that:

#ifdef PATCHGENENABLED Equals "1" Then
#const $IS_PATCH$ = "$TRUE$"
#else
#const $IS_PATCH$ = "$FALSE$"
#end


At runtime, I can check wheter $IS_PATCH$ is true or false.

Markus Zander

NewsArchive
03-29-2009, 12:22 AM
> At compile time? Well. What about that:
>
> #ifdef PATCHGENENABLED Equals "1" Then
> #const $IS_PATCH$ = "$TRUE$"
> #else
> #const $IS_PATCH$ = "$FALSE$"
> #end
>
>
> At runtime, I can check wheter $IS_PATCH$ is true or false.

I think what could work is a new SB_GENERATORFLAG symbol. This can then
handle the following:

#ifdef SB_GENERATORFLAG Equals "1" on Position "$PATCHGENENABLED$" Then
Set Variable %IS_PATCH% to "1"
#else
Set Variable %IS_PATCH% to "0"
#end

At installer runtime, the %IS_PATCH% variable would be "1" if "Disable Patch
Generation" was not enabled.

What do you think?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-29-2009, 12:23 AM
Added! The following is possible now (see attached screenshot).

Thank you for your suggestion.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-29-2009, 12:24 AM
BTW, added to SB7. We'll not see any new feature in SB6.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-29-2009, 12:24 AM
> BTW, added to SB7. We'll not see any new feature in SB6.
>
Friedrich, you are so fast. It's unbelievebal. BTW, SB7: You sayed, that
you will release a new SB7 this weekend. Is this still true or is it
postponed?

Markus

NewsArchive
03-29-2009, 12:25 AM
Hi Markus,

>> BTW, added to SB7. We'll not see any new feature in SB6.
>>
> Friedrich, you are so fast. It's unbelievebal.

:-)

> BTW, SB7: You sayed, that you will release a new SB7 this weekend. Is
> this still true or is it postponed?

We have added some more fixes (e.g. your "recursive compiler variable" issue
<g>) and had to postpone the new SB7 beta for one week. Our goal is to make
it available next Friday (April 3, 2009). This will be the last SB7 beta
before the release candidate for "Developer Edition".

Thanks,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner