|
We use clickonce, however we also have a number of issues where the admin access is restricted. You need to remember the prerequesites, IE the dotnet runtime and anything else you may be installing that does not go into the app folder. Also if you are relying on any registry entries for your app you are dead in the water also.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thank you for replying. I forgot to mention I am running .net v 1.1 and visual studio 2003. The small application I am making is supposed to be used for controlling application roll-outs and upgrades with Microsoft Systems Management Server 2003. Client computers differ in regard to what they have installed, an often it is recommended to uninstall an application before making an upgrade. I know I can run queries from sms to find out wich computer has what application, but I think that it will be more tidy to advertise packages that can "decide" wether to run an install/uninstall or not.
For example Adobe Flash Player ActiveX should be uninstalled and the computer rebooted before upgrading, (this works since the uninstaller is *.exe and I can reboot the computer with sms), but there is also a plugin msi for Firefox, and i want this msi to run IF firefox is installed on that machine.
Everything is working except for launching the msi. Maybe I could try to launch a vbs script from my app that again launches the msi? But then there is the admin rights issue again.
Any suggestions or alternatives is appreciated.
|
|
|
|
|
Just to inform others that might be thinking about a similar way to deploy software. I have found out that launching a vbs file with this function does not work either.
|
|
|
|
|
Hello,
How can I find all the shared folders in a network ?
I want to populate a database with all the pictures on the drives of my metwork in a single loop.
I can do it from a kwon startfolder but not for all the folders in the network
Thanks
|
|
|
|
|
Wow thats a potentially nasty program to put on a corporate netwrok!
You could loop through each drive mapped to your machine and then through each folder as you must be doing.
For drives not mapped to your machine you will need permissions and the name of each share. Discovering the shares - someone else will need to help you there.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi
I have filled a dataset at runtime and then binded to bindingsource1, it is working nicely but when i was searching the list it is continuously ignoring the first item.
dim idx as Integer = BindingSource1.Find("City",CityName)
Then I manually check the idx property and if it is -1 then it checks the first item if it matches or not and it matches.
If idx=-1 then
If BindingSource1.Item(0)("CityName") = CityName then idx=0
End if
Although the technique works but why is it so and why can't it find the first row?
Regards,
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
Dataset is corrupt perhaps project is running properly but i cant not edit data set errors are like
3 The custom tool 'MSDataSetGenerator' failed while processing the file 'betmangerDataSet.xsd'.
2 Type 'BetManager.betmangerDataSetTableAdapters.sportsTableAdapter' is not defined.
Error 3 'DataSetName' is not a member of 'BetManager.betmangerDataSet'.
Error 4 'SchemaSerializationMode' is not a member of 'BetManager.betmangerDataSet'.
Error 5 Type 'BetManager.betmangerDataSetTableAdapters.sportsTableAdapter' is not defined.
Warning 6 Function 'getData' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
what are possible causes of these errors
|
|
|
|
|
Everything seems to be a result of the first error. Try to determine why the tool failed.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Wow
You have a lot of Errors, From the First Error we cant know until you show us the code. Well the last Error means that you have define a function but at the at your Fuction does not return a value. lets see how you wrote your code, but from what you wrote it look messy.
Dont worry we alll start somewhere, i used to get such error before
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi, i was wondering why my code did not add a new row after clicking button1 again.
Its supposed to work like :
1. key in value to "textbox1.text"
2. click button1
3. compare if against each row, if value is equal copy to datagrid2
4. further button1 clicks will add the new rows of result to datagrid2(but now it does not add the row, just overwrites the first row)
<br />
button1.click<br />
Dim dr As DataRow, drNew as DataRow<br />
Dim dt As DataTable = objDataSet.Tables(0)<br />
Dim dt2 As New DataTable<br />
<br />
dt2.Columns.Add("IC Roll")<br />
dt2.Columns.Add("F2")<br />
dt2.Columns.Add("F3")<br />
<br />
For Each dr In dt.Rows<br />
For i As Integer = 0 To dt.Columns.Count - 1<br />
If dr(i).ToString = TextBox1.Text Then<br />
drNew = dt2.NewRow<br />
drNew(0) = dr(0)<br />
drNew(1) = dr(1)<br />
drNew(2) = dr(2)<br />
<br />
dt2.Rows.Add(drNew)<br />
drNew = Nothing<br />
Exit For<br />
End If<br />
Next<br />
Next<br />
<br />
DataGrid2.DataSource = dt2
|
|
|
|
|
Each time you click the button you are creating dt2 as a new table, and then refreshing the grid with the contents of that new table which, according to your nested for loops, may never have more than one row of data. You want to create the dt2 table outside of the Button1.Click handler, but known to that handler, and then you will not be stepping on the contents of the table each time you click the button.
|
|
|
|
|
hi,
I use vertical line in report(.rdlc).i simply draw a list and within it,i draw a line in vertical mode.but at run time it height is decreased. however horizental line is displayed properly
please suggest me if anyone have idea about this issue
|
|
|
|
|
I want a ComboBox to allow the user to add items to the list.
I am trying this...
Private Sub CBSelectName_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles CBSelectName.KeyDown
If e.KeyCode = Keys.Enter And CBSelectName.Text IsNot Nothing Then
CBSelectName.Items.Add(CBSelectName.Text)
CBSelectName.Text = Nothing
End If
End Sub
Now, it won't recognise
KeyCode
Any suggestions?
------------------------------------
"I want you to imagine I have a blaster in my hand" - Zaphod Beeblebrox.
"You DO have a blaster in your hand" - Freighter Pilot
"Yeah, so you don't have to tax your imagination too hard" - Zaphod Beeblebrox
|
|
|
|
|
Hi,
yes System.Windows.Forms.KeyEventArgs has a KeyCode property.
Dalek Dave wrote: Now, it won't recognise KeyCode
Please expand.
|
|
|
|
|
At the point where it says
If e.KeyCode = Keys.Enter And CBSelectName.Text IsNot Nothing Then
I type the If e. bit, then there is no option for Keycode.
I haven't declared the
System.Windows.Forms.KeyEventArgs
I may state that I am new to VB and have never written anything more complicated than a purchase order system for work.
This is to be a small program so that the HR person may select/input a name, and the relevent details can then be accessed/edited.
I have several text/numerical/image files, so that the screen shows a picture of the staff member and the department/salary etc.
How do I declare the System.Windows
(Also, I am using the express edition, does this make a difference?
------------------------------------
"I want you to imagine I have a blaster in my hand" - Zaphod Beeblebrox.
"You DO have a blaster in your hand" - Freighter Pilot
"Yeah, so you don't have to tax your imagination too hard" - Zaphod Beeblebrox
|
|
|
|
|
Hi,
your code is fine, but there seems to be something slightly wrong in Visual Studio 2008 VB.NET
I tried a new project, directly entered the code, and Intellisense was not recognizing most of it,
as if it was unaware of the references that get added automatically when creating a WinApp project
(such as System.Windows.Forms).
This is a way that works well:
- create a new WinApp project
- before adding any code, compile and run it
- now start editing either the form or the code at your leisure.
You should notice that Intellisense kicks in when you hit the period at System, then
at System.Windows, etc etc
Intellisense not working properly without an initial compile/run seems like a bug (or at
least a small malfunction)
modified on Saturday, July 19, 2008 9:18 PM
|
|
|
|
|
Badabing!
Thanks, it seems ok now.
I didn't think i was doing things wrong.
What I need it to do is now happening, I do prefer it when they obey you rather than ignore you!
------------------------------------
"I want you to imagine I have a blaster in my hand" - Zaphod Beeblebrox.
"You DO have a blaster in your hand" - Freighter Pilot
"Yeah, so you don't have to tax your imagination too hard" - Zaphod Beeblebrox
|
|
|
|
|
That code works fine for me.
|
|
|
|
|
by keycode only u wanna to do this
Private Sub CBSelectName_KeyDown(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyEventArgs) Handles CBSelectName.KeyDownIf e.KeyCode = Keys.Enter And CBSelectName.Text <> "" ThenCBSelectName.Items.Add(CBSelectName.Text)CBSelectName.Text = NothingEnd IfEnd Sub
|
|
|
|
|
I have a form that is an MDI parent. I have a ToolStripContainer that has a dock style of fill inside the form. What i want, is for the MDI children of my form to be displayed in the Content Panel of the ToolStripContainer. What is happening now, is when i add a MDI child to my form, it is being displayed in the actual form itself, and not in the ToolStripContainer. Is there any way i can the Content panel of my form the panel where the MDI children are displayed?
if (your.Life == lifestyles.Programming)
{
your.Cool = true;
}
else
{
your.Cool = false;
}
|
|
|
|
|
Hi all,
i have developed many window base applications in vb6,vb.net with ms access and mssql express and all are running successfully. but i am facing problem to handle piracy of my applications.
pl suggest me a affective way to handle the problem like registration a key etc.
Thanks
rmshah
Developer
|
|
|
|
|
What you are Asking is Broad, and i cant help you with vb6, because i cant understand why you still developing vb6.
what you can do, you can create an administration Program for yourself to administer your applications. but now before your users use your aplication for the first, you need to check the Motherboard key and then your users should call or e-mail you to and give you their motherboard or Processer ID and in your administrator aplication you must generate the Activation key based on the key they gave you, then motherboards can never have the same serial number and you are free from Piracy.
hope this helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi Vuyiswa Maseko,
Thanks a lot for your suggestions.
further i would like to inform you that currently i am delveloping my applications in vb.net (3.0) not in vb6, the applications of vb6 i developed year ago.
your suggestions are very nice and i have developed an small application which retrieve the system informations like motherboard id, cpu id, hdd serial no, model and mac adress.
now pl suggest me, is this possible when someone insert CD (Demo Version of my application) in cd rom and all information mentions above auto matically write on the same cd which carries Demo version of my application or send the same via email auto maticaly.
Thanks agian
rmshah
Developer
|
|
|
|
|
Yes its possible, but it depend what type of info your e-mail to your self and Some info might violate te Privacy of the user. there are laws , as much as you want to Protect your Applcation and the Law is Protecting people from violation of Privacy.But still its possible and only if that person's machine has internet acccess
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
thanks, pl suggest me code or link if possible
rmshah
Developer
|
|
|
|