For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > August 2005 > Wizard .vsz issue









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Wizard .vsz issue
Vivek Vishist

2005-08-03, 5:04 pm

Hello:

I have created a wizard that works good with OS with english language.But
the same OS when installed in OS with german it does not work.
The reason that it does not work is because the in .vsz file the path I
mentioned is c:\program files \microsoft visual studio 2003\Enterprise
framework\efwizards\custom wizard\ .. but in german OS program files I think
is "programme" or something, so it never works. I wanted to find
out if there is a way that I do not have to hardcode the path in .vsz files
and I can take a relative path like
"PRODUCT_INSTALLATION_DIR\..\EnterpriseFrameworks" instead of an absolute
one.

Any thoughts ...

Thanks,
Vivs


Mythran

2005-08-03, 5:04 pm


"Vivek Vishist" <saynotospam@spambusters.com> wrote in message
news:OeJfvAFmFHA.3304@tk2msftngp13.phx.gbl...
> Hello:
>
> I have created a wizard that works good with OS with english language.But
> the same OS when installed in OS with german it does not work.
> The reason that it does not work is because the in .vsz file the path I
> mentioned is c:\program files \microsoft visual studio 2003\Enterprise
> framework\efwizards\custom wizard\ .. but in german OS program files I
> think is "programme" or something, so it never works. I wanted to find
> out if there is a way that I do not have to hardcode the path in .vsz
> files and I can take a relative path like
> "PRODUCT_INSTALLATION_DIR\..\EnterpriseFrameworks" instead of an absolute
> one.
>
> Any thoughts ...
>
> Thanks,
> Vivs
>


There is a registry key which tells you what the vs install dir is. Can't
recall it off top of my head though...

Mythran

Mythran

2005-08-03, 5:04 pm


"Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
news:%23896e%23GmFHA.3832@TK2MSFTNGP10.phx.gbl...
>
> "Vivek Vishist" <saynotospam@spambusters.com> wrote in message
> news:OeJfvAFmFHA.3304@tk2msftngp13.phx.gbl...
>
> There is a registry key which tells you what the vs install dir is. Can't
> recall it off top of my head though...
>
> Mythran
>


Not sure if this is it..but worth a try :)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Vi
sualStudio\SxS\VS7

On my machine, it is correct.

Mythran

Vivek Vishist

2005-08-03, 10:02 pm

Thanks Mythran but I know that I was not very clear in describing this
problem ....
So here I go again ....

in my .vsz file content is something like below mentioned content

--start content --

VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine.7.1

Param="WIZARD_NAME = MindManagerAddinWizard"
Param="START_PATH = C:\Program Files\Microsoft Visual Studio .NET
2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard"
Param="HTML_PATH = C:\Program Files\Microsoft Visual Studio .NET
2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\HTML\"
Param="TEMPLATES_PATH = C:\Program Files\Microsoft Visual Studio .NET
2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Templates\"
Param="SCRIPT_PATH = C:\Program Files\Microsoft Visual Studio .NET
2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Scripts\"
Param="IMAGES_PATH = C:\Program Files\Microsoft Visual Studio .NET
2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Images"
---end content ----

the path "c:\program files" failon os with german language because of the
word "program" because they have something like "programme", so in my .vsz
file I wanted something like the following if that is possible ...because
doing this I will not have to make a language specific build ..just one
build would be good enough for all the languages

Also PRODUCT_INSTALLATION_DIR is the installation dir that the wizard has by
default.

---desired content ---
VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine.7.1

Param="WIZARD_NAME = MindManagerAddinWizard"
Param="START_PATH =
PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard"
Param="HTML_PATH =
PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\HTML\"
Param="TEMPLATES_PATH =
PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Templates\"
Param="SCRIPT_PATH =
PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Scripts\"
Param="IMAGES_PATH =
PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Images"
--end desired content--


Hoping to find a solution... ... ... ... ... :-)



"Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
news:OYlEOKHmFHA.3256@tk2msftngp13.phx.gbl...
>
> "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
> news:%23896e%23GmFHA.3832@TK2MSFTNGP10.phx.gbl...
>
> Not sure if this is it..but worth a try :)
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Vi
sualStudio\SxS\VS7
>
> On my machine, it is correct.
>
> Mythran
>



BobF

2005-08-04, 5:05 pm

On Wed, 3 Aug 2005 16:52:56 -0700, Vivek Vishist wrote:
[color=darkred]
> Thanks Mythran but I know that I was not very clear in describing this
> problem ....
> So here I go again ....
>
> in my .vsz file content is something like below mentioned content
>
> --start content --
>
> VSWIZARD 7.0
> Wizard=VsWizard.VsWizardEngine.7.1
>
> Param="WIZARD_NAME = MindManagerAddinWizard"
> Param="START_PATH = C:\Program Files\Microsoft Visual Studio .NET
> 2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard"
> Param="HTML_PATH = C:\Program Files\Microsoft Visual Studio .NET
> 2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\HTML\"
> Param="TEMPLATES_PATH = C:\Program Files\Microsoft Visual Studio .NET
> 2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Templates\"
> Param="SCRIPT_PATH = C:\Program Files\Microsoft Visual Studio .NET
> 2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Scripts\"
> Param="IMAGES_PATH = C:\Program Files\Microsoft Visual Studio .NET
> 2003\EnterpriseFrameworks\EFWizards\cust
omaddinwizard\Images"
> ---end content ----
>
> the path "c:\program files" failon os with german language because of the
> word "program" because they have something like "programme", so in my .vsz
> file I wanted something like the following if that is possible ...because
> doing this I will not have to make a language specific build ..just one
> build would be good enough for all the languages
>
> Also PRODUCT_INSTALLATION_DIR is the installation dir that the wizard has by
> default.
>
> ---desired content ---
> VSWIZARD 7.0
> Wizard=VsWizard.VsWizardEngine.7.1
>
> Param="WIZARD_NAME = MindManagerAddinWizard"
> Param="START_PATH =
> PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard"
> Param="HTML_PATH =
> PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\HTML\"
> Param="TEMPLATES_PATH =
> PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Templates\"
> Param="SCRIPT_PATH =
> PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Scripts\"
> Param="IMAGES_PATH =
> PRODUCT_INSTALLATION_DIR\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard\Images"
> --end desired content--
>
>
> Hoping to find a solution... ... ... ... ... :-)
>
>
>
> "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
> news:OYlEOKHmFHA.3256@tk2msftngp13.phx.gbl...

Read RELATIVE_PATH description in the table here:
http://msdn.microsoft.com/library/d...zardsymbols.asp
Vivek Vishist

2005-08-04, 10:02 pm

Thanks Bob .. I had already read this article :-( but I appreciate your
help.

The thing is(I think) that Visual Studio reads this .vsz file values as text
strings, ofcourse using the Execute method which takes
the "CustomParams"(it is one of the parameter for Execute method) as the
input text from this .vsz file.

So the problem was if I mention c:\program files \ .... or I mention
something like " PROJECT_INSTALLATION_DIR\mypath\customwi
zards"
it was failing. The reason being the Execute command was not able to infer
what does c:\program files\...\HTML\1033\default.html mean on a german os
since the program files is spelled differently in german Operating system..
and as it is a path like " PROJECT_INSTALLATION_DIR\mypath\customwi
zards "
will never work out since this is not a real world path and will fail.

But doing some more playing with this.vsz file I got blessed me with a
solution (Ting !!! )
and what I did is that in the .vsz file I changed the content as follows:

--start content --

VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine.7.1

Param="WIZARD_NAME
=CustomAddinWizard\..\..\.. \EnterpriseFrameworks\EFWizards\customad
dinwizard"

--end content --

Now since the START_PATH adds wizard name to its end and looks for the
HTML,SCRIPT & TEMPLATES directories based on this path.
so I removed all the path values from the file and changed the WIZARD_NAME
as above.now since I have all directories (SCRIPTS,HTML,IMAGES,TEMPLATES)
under customaddinwizard it should work. And so it gave me the key for this
lock...and here I am
saying that I did it.

Hope my finding wont be a problem , which as of now with all my testing is
working perfectly fine. and my finding would be helpful for someone.

Cheers,

Vivs


"BobF" <rNfOrSePeAzMe@charter.net> wrote in message
news:95oohpub2k9z$.zptgv2iql7k6.dlg@40tude.net...
> On Wed, 3 Aug 2005 16:52:56 -0700, Vivek Vishist wrote:
>
>
> Read RELATIVE_PATH description in the table here:
> http://msdn.microsoft.com/library/d...zardsymbols.asp



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com