PC Review


Reply
Thread Tools Rate Thread

create .exe for vista or xp

 
 
Tracy
Guest
Posts: n/a
 
      27th Feb 2007
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


 
Reply With Quote
 
 
 
 
Ayush
Guest
Posts: n/a
 
      27th Feb 2007
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.
--
XP-Tips [Add a Map Drive button to the toolbar] :
http://www.microsoft.com/windowsxp/u.../mdbutton.mspx
 
Reply With Quote
 
Tracy
Guest
Posts: n/a
 
      27th Feb 2007
And how would I go about doing that?

Tracy


"Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:(E-Mail Removed)...
> 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.
> --
> XP-Tips [Add a Map Drive button to the toolbar] :
> http://www.microsoft.com/windowsxp/u.../mdbutton.mspx



 
Reply With Quote
 
Ron Sommer
Guest
Posts: n/a
 
      27th Feb 2007
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

"Tracy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
: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
:
:

 
Reply With Quote
 
Ayush
Guest
Posts: n/a
 
      27th Feb 2007
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.
--
XP-Tips & Tricks [Use keyboard shortcuts] :
http://www.microsoft.com/windowsxp/u...shortcuts.mspx
 
Reply With Quote
 
Tracy
Guest
Posts: n/a
 
      27th Feb 2007
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" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:eWC%(E-Mail Removed)...
> 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.
> --
> XP-Tips & Tricks [Use keyboard shortcuts] :
> http://www.microsoft.com/windowsxp/u...shortcuts.mspx



 
Reply With Quote
 
Tracy
Guest
Posts: n/a
 
      27th Feb 2007
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




"Ron Sommer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
> "Tracy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> :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
> :
> :
>



 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      27th Feb 2007
3rd party software for instance PK-ZIP, provides those features.

Tracy wrote:

> 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" <"ayushmaan.j[aatt]gmail.com"> wrote in message
> news:eWC%(E-Mail Removed)...
>
>>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.
>>--
>>XP-Tips & Tricks [Use keyboard shortcuts] :
>>http://www.microsoft.com/windowsxp/u...shortcuts.mspx

>
>
>


 
Reply With Quote
 
Ayush
Guest
Posts: n/a
 
      27th Feb 2007
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.
--
XP-Tips [Speed up menu display] :
http://www.microsoft.com/windowsxp/u...tips/menu.mspx
 
Reply With Quote
 
C.Joseph Drayton
Guest
Posts: n/a
 
      2nd Mar 2007
Tracy wrote:
> 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a Vista install CD or DVD? Neil Jones Windows Vista General Discussion 2 5th Dec 2007 02:08 AM
Help! Vista Cannot create dialup/VPN connections "The wizard cannot create the connection" licensetokill007 Windows Vista Networking 4 22nd Nov 2007 04:16 PM
Cannot create Map from Vista Premimum PC / Vista Premium PC not ma =?Utf-8?B?UGllcnJl?= Windows Vista Networking 0 20th Jul 2007 02:54 PM
create image for Vista OM Windows Vista Installation 4 12th Jul 2007 05:37 PM
Vista Explorer Create New Item Not Visible on Create - Bug or Feature??? Leightym@msn.com Windows Vista General Discussion 0 21st Mar 2007 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 PM.