View Single Post
Old 06-15-2009   #4 (permalink)
Pegasus [MVP]


 
 

Re: Help with vbs script

No, you don't prepare anything. Just run the batch file as it is.

"???? ????" <@discussions.microsoft.com> wrote in message
news:867DCF22-9F10-458F-BADC-B422CE30D9D7@xxxxxx
Quote:

>
> Hi there,
> Thank you for your answer.
>
> When you wrote: "if exist c:\installed.reg del c:\installed.reg"
>
> Should i create first the installed.reg file and put it in c:\installed?
>
> Should it contain the path to the guid?
>
> Thanks gain.
>
> Amir
>
> "Pegasus [MVP]" wrote:
>
Quote:

>>
>> "???? ????" <@discussions.microsoft.com> wrote in message
>> news:2EEC4EC6-8D6B-4F5C-BBB4-B86CB1A2D0F4@xxxxxx
Quote:

>> > Hello all
>> >
>> > I am trying to write a vbs script.
>> > The purpose of the script is to check if a GUID number is exist on the
>> > registry.
>> > if not, to install the an application and if Yes, to end.
>> >
>> > Example:
>> >
>> > If
>> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{388E4B09-3E71-4649-8921-F44A3A2954A7}
>> > exsit then END
>> > if not, install the application (in this case office VSTO).
>> >
>> > Thank you very much for your help
>> >
>> > Amir
>> >
>>
>> Since the installation of Office VSTO is most likely invoked via an
>> executable file, it would be simpler to run the whole process in batch
>> file,
>> e.g. like so:
>> @echo off
>> if exist c:\installed.reg del c:\installed.reg
>> regedit /e c:\installed.reg
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{388E4B09-3E71-4649-8921-F44A3A2954A7}
>> if exist c:\installed.reg (
>> del c:\installed.reg
>> goto :eof
>> )
>> e:\setup.exe [this is the Office VSTO installation program]
>>
>>
>>

My System SpecsSystem Spec