|
Hello,
I have the following question.
I publish my application to a folder, after that i copy the folder to for example a usb stick with that stick i go to the PC where the programm needs to be installed.
When i run the setup the programm is auto installing and is working without any problems.
What i dont find is how i can set the directory where the programm needs to be installed . for the moment is is installing someware Locallow\...\...
So the directory is not in program files.
Can anyone tell me how i can change that ?
I have a second question, i need to copy also a DLL for my star ticketprinter to the installation destination folder is there a way that i can include it in the setup ?
Thanks
Best regards
DCA
|
|
|
|
|
Is it published using ClickOnce?? If so, you have no control over the install location.
If you created an .MSI installer (non-Express versions of VS,) then you've got control over where it installs. Or, you can even use third party installer creation apps, like InnoSetup, Wise Package Studio, InstallShield, ...
|
|
|
|
|
Hello,
Thanks for responding.
When i check the properties of the project i see in security settings Enable Clickone Security settings. When i uncheck that one and do a publish i can still not select the destination directory.
Can you please give one more time advise please.
thanks
DCA
|
|
|
|
|
I already said if you're using ClickOnce to deploy your application, and you are from what I can tell, you have zero control over the installation directory. Once again - are you using an Express Edition of Visual Studio??
It's that simple. I already told you want your options are.
|
|
|
|
|
Hello,
Sorry, i was forgotten to set in my mail wich version i use :
Visual Studio 2008 professional Service Pack 1
Can you please write me very short the steps i have to check ?
Thanks
Best regards
DCA
|
|
|
|
|
Add a Setup project to you solution. There's a wizard available to walk you through the basics.
|
|
|
|
|
Dear All
I had used following code in VB6.0 to open test document through shell and I got following error....
Code: Shell "C:\shashi\test.doc"
Error: Invalid procedure call or argument
Code: Shell "C:\Program Files\Microsoft Office\OFFICE11\winword.exe" & "C:\shashi\test.doc"
Error: File Not Found
Please help......
|
|
|
|
|
I think you are missing a space before the file name, so what you have is
winword.exeC:\shashi\test.doc
so try
Shell "C:\Program Files\Microsoft Office\OFFICE11\winword.exe" & " C:\shashi\test.doc"
Bob
Ashfield Consultants Ltd
|
|
|
|
|
thanx for reply...
same error again actually there is no sapce present...
|
|
|
|
|
Shazz Rock wrote: Code: Shell "C:\shashi\test.doc"
You'll have to use ShellExecuteEx to do that.
|
|
|
|
|
thanx...
do i hav to add preference or component....
if not then sorrrry to say it didn't work...
please give another solution....
|
|
|
|
|
The ShellExecuteEx is an API. Google it next time before you 1-vote replies, or next time you won't get any replies.
|
|
|
|
|
Shazz Rock wrote: Shell "C:\shashi\test.doc"
Error: Invalid procedure call or argument
There's only a couple of reasons this would have failed. The first is if the file path doesn't exist. The second is if there is a problem with the extension association (.doc) with an application. But, in this case, you would not have gotten the error you did.
Shazz Rock wrote: Shell "C:\Program Files\Microsoft Office\OFFICE11\winword.exe" & "C:\shashi\test.doc"
Error: File Not Found
It didn't work because you tried to execute something called Program , with the command line parameters of Files\Microsoft and Office\OFFICE11\winword.exe and C:\shashi\test.doc . Spaces, anywhere in the command line, are treated as delimiters.
You need to wrap full path specifications in double quotes so they are treated as a single component of the command line.
Your code should be closer to:
Shell """C:\Program Files\Microsoft Office\OFFICE11\winword.exe"" & _
" " & """C:\shashi\test.doc"""
|
|
|
|
|
"hello
I have following problem, I want to pass a variable in VBA code (MS Access)
M_Variable = "Text"
with Mrst
![M_Variable]= "AnotherTextString"
end with
The problem is I don't know how to pass this variable on.
Do I have to put hyphens? ("'"M_Variable"'" or [ & "'" & M_Variable & & "'" & ]) I tried some more combinations but they didn't work.
Many thanks for your help
Pierre
|
|
|
|
|
Try this
dim x as string
x = Mrst![M_Variable]
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello Bob
Thank you for your reply.
It gave me a hint. following solution worked.
With MyRst
.AddNew
.Fields(MyString) = mychaine(M_Number)
.Update
End With
Thanks again
Pierre
|
|
|
|
|
No problem.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i thought it is not very difficult to create such a fn
|
|
|
|
|
Please try to reply to the post, not create a new one.
WEB2BABA wrote: i thought it is not very difficult to create such a fn
Probably not. Try researching the answer you were given.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi there
I have a problem, can you help me.
When I find some code in VB6 and opens it in Visual Studio 2008 I get a an error I can't find out?
Like this :
TextBox3.Text = VB6.Format(Hex(colr), "0#####")
<b>VB6????? what should I write instead of "VB6" in visual Studio 2008? </b>
|
|
|
|
|
Don't open VB6 code in Visual Studio 2008. Use Notepad, or Visual Studio 6.
|
|
|
|
|
Why are you even doing this?? You can't compile VB6 in Visual Studio 2008.
|
|
|
|
|
Simon give me a hint in another section. But Visual 2008 can help you compile or translate your vb6 code. It doesn't do it very good, by save some time, but 2008 ´reads many thing diffents than vb6 (or .net code) I'm new at this
|
|
|
|
|
vbMr'J wrote: but 2008 ´reads many thing diffents than vb6 (or .net code)
That doesn't make any sense at all... There is a VB6 Migration Wizard that will convert your VB6 project and code to something resembling VB.NET code, but it really does just wrap your VB6 code in a kind of emulator that lets your old VB6 code (converted to VB.NET equivilent code) run. It's by no means a perfect solution and there is no product out there that will do a perfect conversion, other than recoding the entire project by hand.
|
|
|
|
|
I am making a application in vb.net .
I need a VB.NET function that will move the mouse cursor relative to an external application(eg-note pad or paint or a game) such as at X: 200, Y:150. However, I need these coordinates to be relative to the external application window, not for the user's screen. I want to create such function.plz help.
|
|
|
|