PDA

View Full Version : Which SB function writes the Uninstall registry data



NewsArchive
05-10-2011, 12:57 AM
Hi,

Can someone please tell me which SB function writes the Uninstall
registry key data and where in the script this happens? See image for
explanation.

Thanks a bunch.

--
*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-10-2011, 12:58 AM
> Can someone please tell me which SB function writes the Uninstall
> registry key data and where in the script this happens? See image for
> explanation.

Hi Lee,

IIRC that is one of those "automagic" built-in things that happens when you
check the box that says "Support Uninstall".

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
05-10-2011, 12:58 AM
Hi Charles,

I do have that box checked and it isn't being written.

Thanks.

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-10-2011, 12:59 AM
Hi Lee,

> Can someone please tell me which SB function writes the Uninstall
> registry key data and where in the script this happens? See image for
> explanation.

The following in your script handles it:

! Create installation .log
Create Installation App & Log "[UNINSTALL_LOG]"

Friedrich

NewsArchive
05-11-2011, 02:06 AM
Hi Friedrich,

Thank you. That saved me a lot of "trial & error" time trying to figure
it out on my own.

Another question - please.

This installer script is basically doing nothing more than creating some
folders and then unzipping files ( created with LSZIP by the way ) into
those folders.

If I allow this installer to create an "uninstall" log file for this,
will the uninstaller be able to remove the folders as well as the files
that were unzipped into those folders?

This installer has no files that it is actually installing. Only the ZIP
files mentioned above.

Thanks again......

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-11-2011, 02:06 AM
The uninstaller will remove whatever has been written into the installation
log file.
If you're unzipping and copying files yourself, the log won't know about
them.

You might look at the help file topic "Creating a Custom Uninstall"

- "For example, you can now delete file(s), remove entire directories,
delete registry keys, execute programs, execute any custom events that need
to occur"

jf

NewsArchive
05-11-2011, 02:07 AM
Hi Jane,

Thanks for the reply.

I suspected as much, but thought I would ask the question to potentially
save me a whole lot of "trial & error" time. Sometimes it is much
easier, and wiser, to seek the knowledge and experience of others that
have been down those roads before you.

In this case I am using the SB Unzip Files function.

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-11-2011, 02:08 AM
Run your installer on a clean machine, then use notepad to read the
uninstall log file it creates. That will tell you what the uninstaller
knows how to process automatically.

Jane

NewsArchive
05-11-2011, 02:08 AM
Hi Lee,

>
> In this case I am using the SB Unzip Files function.
>

What Jane said. The unzip process (powered by LSZip) can't log the unzip
operations.

But it's a good idea. The LSZip libraries support a 'callback' feature and
in theory, it should be possible to "communicate" with the LSZip DLLs and
retrieve the name of the unzipped file. But this requires an update to the
LSZip DLL because the installer makes use of an 'undocumented' LSZip feature
to handle the unzip process. We'll see if it is possible to handle this in
a future SB build.

Friedrich

NewsArchive
05-11-2011, 02:10 AM
That would be awesome.....

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-11-2011, 02:11 AM
> That would be awesome.....

"Awesome" is Friedrich's middle name!

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
05-11-2011, 02:12 AM
So I've heard. . . .

*Regards*,

Lee
www.cya2day.com
CYA - Assets Don't Leave Home Without One

NewsArchive
05-11-2011, 04:09 AM
>
> So I've heard. . . .
>

Hehehehe :)

BTW, we have already an experimental build that can log the unzip actions.
We'll do some more tests.

Friedrich

NewsArchive
05-12-2011, 12:33 AM
Unbelievable....

Will the unzip actions also be reported to the user through the progress
bar? I notice that progress bar stalls out a bit while unzipping and it
can vary significantly depending on the size of the ZIP file and speed
of the machine.

JAT.... You may want to make the *uninstall* of the unzipped files
optional.

I can't wait to see this....<g>

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-12-2011, 12:33 AM
Hi Lee,

> Unbelievable....
>
> Will the unzip actions also be reported to the user through the progress
> bar? I notice that progress bar stalls out a bit while unzipping and it
> can vary significantly depending on the size of the ZIP file and speed of
> the machine.
>
> JAT.... You may want to make the *uninstall* of the unzipped files
> optional.
>
> I can't wait to see this....<g>

<g>

Yes, the installer runtime can "communicate" in real-time with the LSZip
unzip component now. So I think we can update the 2nd progress bar (haven't
tested it yet) to display the overall unzip progress.

The "Unzip File(s)..." function provides a new "Remove on Uninstall"
checkbox option now. You check this box if you want to remove the unzipped
file during an uninstallation.

Friedrich

NewsArchive
05-12-2011, 12:34 AM
Thank you Friedrich.......

This will be the last piece I need to complete this complicated puzzle I
am working on.

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
05-18-2011, 12:57 AM
Hi Lee,

> Thank you Friedrich.......
>
> This will be the last piece I need to complete this complicated puzzle I
> am working on.

The new unzip functionality is available in the "Development Build" now:

---

IMPROVEMENT: (sync from SB8) Add 'Remove on Uninstall' option to the "Unzip
File(s)..." script function to remove unzipped files during an
uninstallation.

IMPROVEMENT: (sync from SB8) Runtime: The "Unzip File(s)..." script function
can display an overall unzip progress in the "Progress Dialog"
or the "Wait Dialog".

---

So if you are interested, please download and test it :)

Friedrich