create .exe for vista or xp

T

Tracy

I want to be able to create a zip file to send someone. But, they can't
unzip and it's easier for them to use a .exe file.
Problem:
In Vista, the path for stationery is :
C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\
In XP it's:
C:\Program Files\Common Files\Microsoft Shared\Stationery

Is it possible to create one .exe file that can be used on either OS? If
so, when I create the .exe from the zip, what would I use for the path?

If it's not, then I'll go to the Vista newsgroup and ask them instead and
just end up doing 2 sets: one for Vista and one for XP.

Thanks,
Tracy
 
A

Ayush

Replied to [Tracy]s message :
I want to be able to create a zip file to send someone. But, they can't
unzip and it's easier for them to use a .exe file.
Problem:
In Vista, the path for stationery is :
C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\
In XP it's:
C:\Program Files\Common Files\Microsoft Shared\Stationery

Is it possible to create one .exe file that can be used on either OS? If
so, when I create the .exe from the zip, what would I use for the path?

If it's not, then I'll go to the Vista newsgroup and ask them instead and
just end up doing 2 sets: one for Vista and one for XP.

Thanks,
Tracy

You can use a script (e.g. batch) that checks the OS version then copies
the files to the correct folder.

Good Luck, Ayush.
 
T

Tracy

And how would I go about doing that?

Tracy


Ayush said:
Replied to [Tracy]s message :
I want to be able to create a zip file to send someone. But, they can't
unzip and it's easier for them to use a .exe file.
Problem:
In Vista, the path for stationery is :
C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\
In XP it's:
C:\Program Files\Common Files\Microsoft Shared\Stationery

Is it possible to create one .exe file that can be used on either OS? If
so, when I create the .exe from the zip, what would I use for the path?

If it's not, then I'll go to the Vista newsgroup and ask them instead and
just end up doing 2 sets: one for Vista and one for XP.

Thanks,
Tracy

You can use a script (e.g. batch) that checks the OS version then copies
the files to the correct folder.

Good Luck, Ayush.
 
R

Ron Sommer

Anyone with Vista or XP can unzip a file.
Are they saving the file to the hard drive, then opening the zip file?

Do you have a program that creates executable files?

What does a zip or exe file have to do with where Stationery is located?
--
Ronald Sommer

:I want to be able to create a zip file to send someone. But, they can't
: unzip and it's easier for them to use a .exe file.
: Problem:
: In Vista, the path for stationery is :
: C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\
: In XP it's:
: C:\Program Files\Common Files\Microsoft Shared\Stationery
:
: Is it possible to create one .exe file that can be used on either OS? If
: so, when I create the .exe from the zip, what would I use for the path?
:
: If it's not, then I'll go to the Vista newsgroup and ask them instead and
: just end up doing 2 sets: one for Vista and one for XP.
:
: Thanks,
: Tracy
:
:
 
A

Ayush

Replied to [Tracy]s message :
And how would I go about doing that?

Tracy


I am not good at batch scripting but here is a JS that will copy all files
from current folder to Stationery folder :

ws = new ActiveXObject("WScript.Shell")
val=ws.RegRead("HKLM\\SOFTWARE\\Microsoft\\Shared
Tools\\Stationery\\Stationery Folder")
toFol=ws.ExpandEnvironmentStrings(val)

fs = new ActiveXObject("Scripting.FileSystemObject")
fs.CopyFile("*.*",toFol,)



Good Luck, Ayush.
 
T

Tracy

I'm not referring to actually copying the files from one place to another.
I'm referring to having a self-extractor .exe file. One where the user
clicks on the .exe file and the files are automatically extracted right
where they are suppose to be....in the folder for Outlook Express and/or
Vista Windows Mail.

Tracy

Ayush said:
Replied to [Tracy]s message :
And how would I go about doing that?

Tracy


I am not good at batch scripting but here is a JS that will copy all files
from current folder to Stationery folder :

ws = new ActiveXObject("WScript.Shell")
val=ws.RegRead("HKLM\\SOFTWARE\\Microsoft\\Shared
Tools\\Stationery\\Stationery Folder")
toFol=ws.ExpandEnvironmentStrings(val)

fs = new ActiveXObject("Scripting.FileSystemObject")
fs.CopyFile("*.*",toFol,)



Good Luck, Ayush.
 
T

Tracy

A zip or .exe file has a lot to do with where stationery is located.
Scenario:
Jane love to use stationery to send email message.
I created a stationery for her to use with her name and a picture of her on
it.
I sent her the zip file
Even with XP's ability to unzip a file, it's still to complicated for her to
learn the proper procedures as to where to actually unzip the files.
(MANY people have really screwed it up because they don't really know how a
computer works)
So...instead of sending her the zip file, I right click on the zip file,
choose WinZip, Create Self-Extractor .EXE file.
I send it to her.
She saves it. Then she double clicks on the .exe file and the files are
automatically extracted into the folder of:
C:\Program Files\Common Files\Microsoft Shared\Stationery


There are many people who want the same stationery, but have a different
name put on it.
With the introduction of Vista, email stationery now has a different
location. That being:
C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\

With the onset of a different location for the files in Vista, and many
people not having Vista, but have XP, I'm trying to be able to create an
..exe files from a zip so that when the .exe is run, the stationery files
will be extracted into their C:\....\Windows Mail\Stationery folder

Problem:
The path of each person will be different because of the actual User name.


Anyone really understand what it is that I'm trying to accomplish?

Tracy
 
B

Bob I

3rd party software for instance PK-ZIP, provides those features.
I'm not referring to actually copying the files from one place to another.
I'm referring to having a self-extractor .exe file. One where the user
clicks on the .exe file and the files are automatically extracted right
where they are suppose to be....in the folder for Outlook Express and/or
Vista Windows Mail.

Tracy

Replied to [Tracy]s message :
And how would I go about doing that?

Tracy


I am not good at batch scripting but here is a JS that will copy all files
from current folder to Stationery folder :

ws = new ActiveXObject("WScript.Shell")
val=ws.RegRead("HKLM\\SOFTWARE\\Microsoft\\Shared
Tools\\Stationery\\Stationery Folder")
toFol=ws.ExpandEnvironmentStrings(val)

fs = new ActiveXObject("Scripting.FileSystemObject")
fs.CopyFile("*.*",toFol,)



Good Luck, Ayush.
 
A

Ayush

Replied to [Tracy]s message :
I'm not referring to actually copying the files from one place to another.
I'm referring to having a self-extractor .exe file. One where the user
clicks on the .exe file and the files are automatically extracted right
where they are suppose to be....in the folder for Outlook Express and/or
Vista Windows Mail.


OK. You can do this :
1) Use WinRar to create a sfx.
2) In Sfx options, set to extract the files to a temp folder then run the
JS (all silently)
3) The JS will run from Temp folder and do the work
4) All Done with no user input.




Good Luck, Ayush.
 
C

C.Joseph Drayton

Tracy said:
I want to be able to create a zip file to send someone. But, they can't
unzip and it's easier for them to use a .exe file.
Problem:
In Vista, the path for stationery is :
C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows Mail\Stationery\
In XP it's:
C:\Program Files\Common Files\Microsoft Shared\Stationery

Is it possible to create one .exe file that can be used on either OS? If
so, when I create the .exe from the zip, what would I use for the path?

If it's not, then I'll go to the Vista newsgroup and ask them instead and
just end up doing 2 sets: one for Vista and one for XP.

Thanks,
Tracy

Hi Tracy,

When you create the self extracting zip file, use RELATIVE path
rather than fixed path.

Ciao . . . C.Joseph

"When hope is lost . . . the spirit dies."
-- Lao Tzu

http://www.tlerma.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top