Home > Uncategorized > How Vista protect you against dangerous installers

How Vista protect you against dangerous installers

I’m using 7-zip to create simple installer for the software I develop. Many of my customers doesn’t have administrators rights and it was not a problem until recently. Vista wants adminstrator privileges to run my installers (actually a simple self extracting archive). I was wondering why Vista would require administrator privilieges to extract an archive so I tried with simple executables in Cygwin:

$ cat > foo.c
int main(void) {
   return 0;
}
$ gcc foo.c -o installer.exe
$ ./installer.exe
bash: ./installer.exe: Permission denied
$ mv installer.exe foo.exe
$ ./foo.exe

The conclusion of my errors and trials is that, on Vista, a dangerous file is a file wich contains the string instal in its name. I will just non longer name my archive foo-version-installer.exe but foo-version-inst.exe.

I’m now really looking forward to find other such easter eggs in Vista.

Advertisements
  1. Julian Ibarz
    May 21, 2009 at 02:41

    Only one thing to say : omg…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: