In Vista, final step of installation launches YOU!!
secretGeek .:dot Nuts about dot Net:.
home .: about .: sign up .: sitemap .: secretGeek RSS

In Vista, final step of installation launches YOU!!

I learnt from NagarSoft that the security conscious Vista doesn't like the idea of an installer that has a 'Run Program Immediately After Installation' step at the end.

This is because "Any processes Setup spawns will inherit the same privileges as Setup" (from Inno Setup Knowledge Base, FAQ Vista)

Okay well this is sad.

An A+ For Security! But An F for Usability!

(continues...)

I mean I get the technical side of it: the setup process needs to have elevated privileges to perform the installation. But you don't want the application itself to have those privileges.

But look at the human side of it: you download something off the internet, and install it. You then have to go hunting around before running it.

That's sad.

The average attention span is now resting at around 5 milliseconds. If you can't find a way to launch the application at the end of installation a lot of users are simply never going to get around to using the software they've installed.

It ought to be easy for developers to provide the features users use.

Actually, looking at the 'technical' side again, this is not just a problem for installation software. It's a common siutation. Say I've written a code editor, and I want to allow the user to launch other tools from this code editor (e.g. 'Preview in Mozilla'). The tools won't be fully trusted by the code editor. When I launch such a process, I'll want to give it the lowest privileges I can, regardless of whether or not I'm an administrator.

I'm basing my opinion on an article at TweakUAC that says:

"Microsoft has... for some reason... not offered a similarly easy way of start[ing] a non-elevated process from an elevated one."

That article provides a Visual Studio 2005 project that shows how an administrative process can launch a process as a standard user. I haven't tried it myself: but it don't look easy.

(All found thanks to the daily grind)

See also Russian Reversal



'Jason' on Thu, 21 Dec 2006 10:30:53 GMT, sez:

Sorry, I find nothing more irritating than an installer that wants to show me a readme file and start the application immediately. In most cases the installer just asked me where I would like icons in the Start, Programs menu so I know where to find it when I'm ready.

Also, it's been a while since I looked at security for starting new processes but I thought going to elevated privileges created a new security token but reducing privileges just used the same token with certain parts disabled. As a result there was a possibility for hijacking the demoted token to get back the elevated privileges. But maybe I'm wrong, it was a while ago.



'Mark' on Thu, 21 Dec 2006 13:06:05 GMT, sez:

I also don't like to launch programs from the installer. That just means I will need to hunt for the program the *second* time that I launch it. Which might be several days later when I can't remember that the shortcut is under the company name XXX instead of the program name.

However, that didn't stop me from adding the launch now option in the installer for my application...... :-)

I have already wished that I did not add this option. Many of my clients use terminal services. When my application runs from the install it is still in the terminal server "install" mode. This causes per user registry entries that are created during the first run to be copied to the shadow key. There is nothing that will break an application faster then trying to access files in a different user's profile.



'lb' on Fri, 22 Dec 2006 03:58:59 GMT, sez:

points taken mark and jason -- maybe 'launch on install' isn't all that ;-)

good review of some security issues too mark.



'ViperWorm' on Sun, 14 Jan 2007 08:03:07 GMT, sez:

Well in my opinion there's nothing bad to excluding the RUN NOW button BUT they should put a substitute button that would, upon clicking on it, open the folder you just used as the installation folder and then you could easily select the .exe file and run it...

Of course I am not a programmer so I don't really know how Vista works but my idea sounds pretty reasonable to me. Take care ^^



'lb' on Sun, 14 Jan 2007 08:05:57 GMT, sez:

nice idea Viper.
i like that when you download something you can open the folder immediately -- and when you unzip something, you get to open the target location immediately.
applying this same concept to the installer sounds about right.




name


website (optional)


enter the word:
 

comment (HTML not allowed)


All viewpoints welcome. But the right to delete any post for any reason is reserved. Don't make me do it. Aim for constructiveness. Comments may be republished, emailed to your loved ones or printed and used as toilet paper. Also, I get particularly nasty on comment spam. It's not worth even trying to post comment spam here -- your html is escaped, and your links are given a rel='nofollow'. By attempting to post a comment, you understand that if the comment is considered spam, at my absolute discretion, your IP address may be used as the target of a prolonged distributed denial of service attack. Your electricity might suddenly stop working. Your car tyres will go mysteriously flat. You will suffer permanent hairloss. Your dreams will be filled with terrifying monsters. And in any case I reserve the right to record and publish your IP address.

 

TimeSnapper is a life analysis system that stores and plays-back your computer use. It makes timesheet recording a breeze, helps you recover lost work and shows you how to sharpen your act.

 

NimbleText - FREE text manipulation and data extraction

NimbleText is a Powerful FREE Tool

Use it for:

  • extracting data from text
  • manipulating text
  • generating code

It makes you look awesome. Use it right now! Go on! Hurry! Don't walk, run!

 

Articles

Just Wally Just Wally
The Correct Order for a First Time Viewing of The Lord Of The Rings The Correct Order for a First Time Viewing of The Lord Of The Rings
A new era for Android. A new era for Android.
Mind-boggling Demo of New Gaming Genre, aka Folder-Based Hangman, aka Fun with Recursion Mind-boggling Demo of New Gaming Genre, aka Folder-Based Hangman, aka Fun with Recursion
Got CSV in your javascript? Use agnes. Got CSV in your javascript? Use agnes.

Archives Complete secretGeek Archives

TimeSnapper -- Automated Screenshot Journal TimeSnapper: automatic screenshot journal
NimbleText -- World's Simplest Code Generator NimbleText: Code Generator, Text Manipulator, Data Extractor

25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Universal Troubleshooting checklist Universal Troubleshooting Checklist
Top 10 SecretGeek articles Top 10 SecretGeek articles
ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Realtime CSS Editor, in a browser RealTime Online CSS Editor
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker


[powered by Google] 


How to be depressed How to be depressed
You are not inadequate.



Recommended Reading


the little schemer


The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Rhys Parry
Joel Pobar
Thomas White
OJ Reeves
Eric Sink

Aggregated Links

proggit
dzone
hacker news
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
weekly link post

LinkedIn profile
LogEnvy - event logs made sexy
Computer, Unlocked. A rapid computer customization resource
PhysioTec, Brisbane Specialist Physiotherapy & Pilates
 
home .: about .: sign up .: sitemap .: secretGeek RSS .: © Leon Bambrick 2006 .: privacy

home .: about .: sign up .: sitemap .: RSS .: © Leon Bambrick 2006 .: privacy