PDA

View Full Version : Send mail at uninstall



NewsArchive
12-31-2007, 02:52 AM
Hi there
I have succeded in making an uninstall script, wich ask the user why he/she
wants to uninstall. This works very fine, and i only have one small problem
left:
If the user desides to not send to me (presses Cancel instead of Next) he is
told that the installation is not finished. Are you sure you want to
interrupt the installation ?.
Can i change this info, or remove the Cancel button ?

Here is my script:


#pragma UNINSTALL = "1"

If %_SB_INSTALLERFLAG% Not Equals "1" on Position "$SB_SILENTMODEFLAG$" Then
Display Message Box "#UNINST_CONFIRM#" -- "#UNINST_HEADING#"
Else
Set Variable %_SB_RETURN% to "$IDYES$"
End
Set Variable %FEEDBACK% to ""

If %_SB_RETURN% Equals "$IDYES$" Then
Process Uninstall Queue
! --- Process uninstall queue ---

If %_SB_ERRORCODE% Equals "0" And %_SB_INSTALLERFLAG% Not Equals "1" on
Position "1" Then
Display Message Box "#UNINST_FINISH#" -- "#UNINST_HEADING#"
End
Define Wizard Dialog "UNINSTALLSURVEY" (Edit Data [Multiple Line])
Loop Wizard (Abort Dialog Inactive)
End
Post to HTTP Server "http://www.vipilon.dk/formmail.php"
End


--
Kind regards / Med Venlig Hilsen
Viggo Poulsen
Vipilon ApS
www.vipilon.dk

NewsArchive
12-31-2007, 02:53 AM
Viggo,

The "Cancel" button always displays the MSG_CANCELSETUPTEXT message box.
But what you are trying to do makes sense. I'll add an option to the next
SetupBuilder build to skip that message box (if "Cancel" is pressed).

BTW, you can change the text in the "Text and Messages" Visualizer ->
Messages -> Cancel Setup -> MSG_CANCELSETUPTEXT

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-31-2007, 02:54 AM
Hello Friedrich,

I saw some light out there so thought ...yes you are here <VBG>

Seing this post makes me dare ask you for a feature request or a way to do
it : I would like to receive an email when a user does an update of my app
with some of his infos (licence number and version old and new)

I can do it in the app but have a focus problem .... would it be possible to
have that done from within the updater if we supply an email address and
server and login etc ?

Merci et .... Bonne année 08

JP

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
12-31-2007, 02:54 AM
Hi Jean-Pierre,

>
> I saw some light out there so thought ...yes you are here <VBG>
>

<BG>

> Seing this post makes me dare ask you for a feature request or a way to do
> it : I would like to receive an email when a user does an update of my app
> with some of his infos (licence number and version old and new)
>
> I can do it in the app but have a focus problem .... would it be possible
> to have that done from within the updater if we supply an email address
> and server and login etc ?

Yes, no problem. You can use the "Post to HTTP Server..." script function
to handle this. Similar to this:

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

Does this help?

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-31-2007, 02:55 AM
Hi Fredrich,

I had of course seen that function but this means I have to set up an HTTP
page to receive that info and that page then sends me the email....

Can SB directly send an email if provided with relevant infos ?
If not, a new function maybe ? said a small voice in the sunset of the 'non
riviera' side of France ..
:)

Merci

JP

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
12-31-2007, 02:56 AM
Hi Jean-Pierre,

No, such a function will not be available in a future SetupBuilder version.
Why? Because it's way too complicated for your customers. Your customers
had to configure the e-mail feature (outgoing SMTP server) before sending
the mail. And what if your clients do not have any SMTP server? Or they
can only send e-mails after they checked for e-mails (relay server). Quite
a few users only have web based e-mail and no access to SMTP. Of course,
you can develop your own SMTP client DLL (e.g. using CapeSoft NetTalk) and
call this directly from your SetupBuilder script.

But 99% of all web hosting companies provide (by default) the cgi to send
messages (even basic level web hosting accounts provide access to
formmail.pl). No need to set up anything. You just post from your
SetupBuilder script to your cgi and the web server forwards the mail to you.
Works perfect.

Does this help?

Friedrich

NewsArchive
12-31-2007, 02:57 AM
Hi Friedrich,

I was not thinking exactly in that way but like this :
in the SB script the dev fills in HIS SMTP and HIS email sendto adress
etc...
The client does nothing at all when he updates - SB script does collect from
his computer the required data and sends with the Dev's SMTP the email

I'll still take a look at your suggestion

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
12-31-2007, 02:57 AM
Hi Jean-Pierre,

I don't think it's possible to automatically retrieve the SMTP login and
password information and then let an external program send through his SMTP.
And I am sure quite a few customers would hate you for doing this <g>. And
what if the customer has different SMTP or not any at all. This SMTP
"solution" would never work reliable!

"Post HTTP" is perfect. No SMTP, you can display what you send and ask your
customer before sending information, you can collect and send whatever you
want, etc.

Friedrich

NewsArchive
01-01-2008, 11:20 AM
Hi Friedrich,

Again my "bad" english :) - pardon !

I meant that the dev - seller fills in HIS complete SMTP data : server login
pwd etc
Nothing is retreived by SB on the clients computer regarding SMTP of course,
ONLY what the dev - seller adds in script (in my case I would retreive from
registry the version number installed to know that such client updated from
version x to version z for example)

That does work technically without any problem at all as nothing personnal
is retreived from the client he has nothing to say

Now if the seller retreives other data it is HIS "fault" and responsability
<G>

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-01-2008, 11:21 AM
Friedrich,


The idea is to create an account on our own server to receive these
messages. The account name, password, and server info are hardcoded in the
uninstaller.

The only thing that can be a limiting factor is whether the user's firewall
blocks port 25. I've used alternate ports in the past and I've used http
posts....

I agree the http post route is best - just trying to help clarify what
Jean-Pierre was asking....

Paul

NewsArchive
01-01-2008, 11:22 AM
......

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-01-2008, 11:22 AM
Hi Paul,

Okay, I see. My fear is that such a built-in SetupBuilder e-mail feature
could result in a support nightmare for us.

IMO, it takes only a few minutes to build a SMTP DLL with CapeSoft NetTalk
and then call this directly from the installer.

On the other hand, such a feature would be a cool addition... I'll give it
some thoughts today.

Thanks,
Friedrich

NewsArchive
01-01-2008, 11:23 AM
I have developed a simple SMTP client and it seems to work fine. I'll see
if we provide it as a freeware add-on (can be called via "Call DLL" from the
script) or if we make it available as a built-in feature.

Friedrich

NewsArchive
01-01-2008, 11:24 AM
Bonne Année .... :)

See the language barrier I have to face every day <BG>
I take 3 messages to explain something : you do not get the idea-point
Someone walks in and says in two lines the same thing and get it ???

I am sure it is "racism" against the frog eaters !

It is just to let us sellers know who updates and from what version they
"came" (but this can be easily scripted outside the function)
The function should be very simple :
Email TEXT
Email TO
Email FROM
SMTP SERVER
SMTP LOGIN
SMTP PWD
SMTP PORT

and moreover a DO NOT DISPLAY ERRORS checkbox (I would always leave this
flag to ON so as to be safe with pbs)

Like this all is silent and the user does not have to interfeere with
anything - in case of error then too bad for the seller his settings are
wrong !

regarding support , honestly if the function is as simple as that then six
lines in docs explain all, no ?

I also think it would be cool to be able to have emails with clients
versions like this (I will of course use them to insert in DB) when a client
calls asking for something we know what version they have offhand!

Merci for your thoughts .... <VBG>

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-01-2008, 11:25 AM
"Disable 'Cancel Setup' Dialog Box" option added. This will be available in
the next build.

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-01-2008, 11:26 AM
Hi Friedrich
Thank you, I'll look forward to it.
Happy newyear here from Denmark

--
Kind regards / Med Venlig Hilsen
Viggo Poulsen
Vipilon ApS
www.vipilon.dk

NewsArchive
01-02-2008, 11:56 AM
> Again my "bad" english :) - pardon !

Either your drinking too much of that good French wine - or not enough!

;-)

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-02-2008, 12:06 PM
I totally agree. You don't want the support issue.....

paul macfarlane

NewsArchive
01-02-2008, 12:07 PM
> The only thing that can be a limiting factor is whether the user's firewall
> blocks port 25. I've used alternate ports in the past and I've used http
> posts....

Most ISP's block outbound traffic to s mail server other than their own
too.

The HTTP post is best.

.... for now.


Of course RegKISS Professional Edition will change all that<vbg>.

With RegKISS Professional - you can send your self an email during a check
for update and no one but you will ever know.

;-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-02-2008, 12:08 PM
Charles,

But WHEEEEEEEEEEENNNNNNNNNNNNNNNNNN ?????

Happy New year 2008 :)

JP

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-02-2008, 12:09 PM
>
> But WHEEEEEEEEEEENNNNNNNNNNNNNNNNNN ?????
>

'Good things take time' ;-) The required SetupBuilder components were not
available until now.

The upcoming setupPROTECT SDK already makes it possible to bulk-generate
serial numbers and maintenance subscription keys. An advanced version of
this SDK will be used in RegKISS to generate and verify keys.

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-02-2008, 12:10 PM
> 'Good things take time' ;-) The required SetupBuilder components were not
> available until now.

You'd think that JP of all people would appreciate the "we serve no wine
before it's time" sort of logic...

<VBG>

> The upcoming setupPROTECT SDK already makes it possible to bulk-generate
> serial numbers and maintenance subscription keys. An advanced version of
> this SDK will be used in RegKISS to generate and verify keys.

Heck when people see what this stuff can do, they may decide that Friedrich
and Charles are even cooler than Shawn and Russ...

;-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-02-2008, 12:11 PM
>> 'Good things take time' ;-) The required SetupBuilder components were
>> not
>> available until now.
>
> You'd think that JP of all people would appreciate the "we serve no wine
> before it's time" sort of logic...
>
> <VBG>
>
>> The upcoming setupPROTECT SDK already makes it possible to bulk-generate
>> serial numbers and maintenance subscription keys. An advanced version of
>> this SDK will be used in RegKISS to generate and verify keys.
>
> Heck when people see what this stuff can do, they may decide that
> Friedrich and Charles are even cooler than Shawn and Russ...

<BG> ;-)

Friedrich

NewsArchive
01-02-2008, 12:11 PM
who are S&R ?
I thought that was a woman's line of underwear (promsed) <VBG>

JP

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-02-2008, 12:14 PM
> But WHEEEEEEEEEEENNNNNNNNNNNNNNNNNN ?????

Q1

We're on a technical break of sorts right now for about a week,

Translation:

Back on dialup until they install my new 10 MB/sec DSL

;-)


> Happy New year 2008 :)

The same to you and yours JP!

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-02-2008, 12:15 PM
Charles,

Playing SV way or normal way ?
sorry could not resist this one ... you did not mention the year mon ami :)

I wish I had again access to a 18Mb/s connection like in our last house ....
down to 1mb max here....

JP

--

Merci - Thank you

JP

Data Management Center
A tool to help you Transfer - Import - Export your data so easily ....

http://www.dm8.fr

NewsArchive
01-03-2008, 03:02 AM
> Playing SV way or normal way ?
> sorry could not resist this one ... you did not mention the year mon ami :)

It's ok - it is an election year here so being non-specific sort of flows
off the keyboard easily...

;-)

> I wish I had again access to a 18Mb/s connection like in our last house ....
> down to 1mb max here....

I'm going from 115K ISDN to 10MB DSL - so I can't begin to say how happy
that makes me<g>.

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-03-2008, 03:03 AM
Going from 115K ISDN to 10MB DSL won't just make you happy!

You'll be downright GIDDY (dizzy: having or causing a whirling sensation)!
:-D

David


--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.encouragersoftware.com/
http://www.profileexchanges.com/blog/

NewsArchive
01-03-2008, 03:04 AM
> Going from 115K ISDN to 10MB DSL won't just make you happy!
> You'll be downright GIDDY (dizzy: having or causing a whirling sensation)!

True - so true!

Of course the 7x improvement on upload speed will be great too<g>.

;-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------