Cancel installation on U3 drive.

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Cancel installation on U3 drive.

Post by Mark » Thu Dec 21, 2006 1:33 pm

Hi,

I am about to release Salery for U3. Now, I want to show a license agreement when the u3install parameter is sent to the standalone and if the user clicks "disagree" I want to stop the installation process and remove all files that have been installed already.

I might be able to simply delete the files from the U3 drive, but I think it takes a little more than that, as I also want to remove the Salery icon from the Launch Pad. If anyone has done this already, could you please tell me how?

Thanks,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

mvanhoudt
Posts: 11
Joined: Wed Jul 26, 2006 4:08 pm
Contact:

Post by mvanhoudt » Thu Dec 21, 2006 5:09 pm

Hi Mark,

You can signal to the launchpad whether an install should continue using a quit code, if it is nonzero, the launchpad will discontinue the install.

Thus, you only need to do:

on disagree
quit 1
end disagree

No files should be left on the system, and you should not have to do any work to manage this.
Marcus van Houdt
Software Developer at Runtime Revolution
marcus@runrev.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Dec 21, 2006 5:42 pm

Thank you Marcus, that's a very clever construction.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply