Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mehrnoosh

@mehrnoosh
About
Posts
43
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • scan a photo by asp.net
    M mehrnoosh

    i want use scanner from my program.. i need a user interface for scanner program in control pannel

    M.Alizadeh

    ASP.NET question csharp asp-net

  • scan a photo by asp.net
    M mehrnoosh

    hi friends how can i scan a photo or a document with asp.net project??

    M.Alizadeh

    ASP.NET question csharp asp-net

  • return executable setup file path
    M mehrnoosh

    ok. then what should i do??? that means when i use a msi package always it return c:\windows\system32...??? i also test this way: In the CustomActionData property of the Custom Action, type: /DIR="[TARGETDIR]\" Then in Installer class, add this code: Dim path As String = Context.Parameters("DIR") but when run setup.exe file it return a null string...

    M.Alizadeh

    Visual Basic debugging help question workspace

  • return executable setup file path
    M mehrnoosh

    thanks for your reply, but did you read my post???!!! i tried it and it returnd path c:\windows\system32\msiexec.exe !!!!

    M.Alizadeh

    Visual Basic debugging help question workspace

  • return executable setup file path
    M mehrnoosh

    hi friends i create a setup program that install my app and i want instal msde in my setup file i write a function that run "msde2000\setup.exe" file with process.start() instruction i located the MSDE2000 folder in my app debug path but when i run the setup file in this line it has a error :

        objProcess = New System.Diagnostics.Process()
        objProcess.StartInfo.FileName = Application.StartupPath & "\\MSDE2000\\setup.exe"
    

    error is can not find setup.exe in c:\windows\system32 why c:\windows\system32????!!!! and when i changed Application.StartupPath to Application.ExecutablePath it returns path c:\windows\system32\msiexec.exe !!!! why???!!!!!!!:confused::confused::confused:

    M.Alizadeh

    Visual Basic debugging help question workspace

  • create setup project that install app and also msde
    M mehrnoosh

    my sql is sql server 2000 and in some article i read that i should install msde do you think installing sql 2005 express is enough ??

    M.Alizadeh

    Visual Basic csharp help question workspace

  • create setup project that install app and also msde
    M mehrnoosh

    hi friends i want to create a setup project that instal my app and MSDE in vb.net 2008 can you help me please?

    M.Alizadeh

    Visual Basic csharp help question workspace

  • share and unshare folder
    M mehrnoosh

    thanks for your answer i searched many articles but i dont know how use Delete Method of the Win32_Share Class when i use this cose:

    Dim dir As String = fpath
    
        Directory.CreateDirectory(dir)
    
        'Create a ManagementClass Object
    
        Dim managementClass As New ManagementClass("Win32\_Share")
    
        ' Create ManagementBaseObjects for in and out parameters
    
        Dim inParams As ManagementBaseObject = managementClass.GetMethodParameters("Delete")
    
        Dim outParams As ManagementBaseObject
    
        ' Set the input parameters
    
        inParams("Description") = fname
    
        inParams("Name") = fname
        inParams("Path") = dir
    
        inParams("Type") = &H0
    
        ' Invoke the method on the ManagementClass object
    
        outParams = managementClass.InvokeMethod("Create", inParams, Nothing)
    
        'Confirm that the operation is successful
    
        If CUInt(outParams.Properties("ReturnValue").Value) <> 0 Then
    
    
    
            Throw New Exception("Unable to share the directory.")
        End If
    
        MessageBox.Show("Folder share deleted")
    

    in this line: "inParams("Description") = fname" it has a error:Object reference not set to an instance of an object. fname is not null and has value

    M.Alizadeh

    Visual Basic help

  • share and unshare folder
    M mehrnoosh

    hi friends. i am writting a share and unshare program and i use this code for share a folder

    Private Sub Sharing()
    Try

            Dim managementClass As New ManagementClass("Win32\_Share")
            Dim inParams As ManagementBaseObject = managementClass.GetMethodParameters("Create")
            inParams("Description") = fname
            inParams("Name") = fname
            inParams("Path") = fpath
            inParams("Type") = &H0
    
          
                Dim outParams As ManagementBaseObject = managementClass.InvokeMethod("Create", inParams, Nothing)
                If Convert.ToUInt32(outParams.Properties("ReturnValue").Value) <> 0 Then
                    chkShare.Checked = True
                End If '
            
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub
    

    this works successfully but now i dont know how i can unshare a folder... help me please

    M.Alizadeh

    Visual Basic help

  • File Sharing in Vb.net
    M mehrnoosh

    nice to see you here. yes i am iranian... thanks for your useful program :) that was so helful:rose:

    M.Alizadeh

    Visual Basic csharp sysadmin help

  • File Sharing in Vb.net
    M mehrnoosh

    Hi I need to build a File Sharing program in Vb.net that will be used to share the Files between two computers through the local network I need some help regarding the Start.Where and how should i start. Shall i have to use the Socket programming or is there any other way of doing this task. Please help

    M.Alizadeh

    Visual Basic csharp sysadmin help

  • could not find a part of the path... [modified]
    M mehrnoosh

    thanks but now this error appears : could not find a part of the path "d:\installer.exe\MSDE2000\setup.ini" d: is the path that i want to install my setup file:(

    M.Alizadeh

    Visual Basic help csharp workspace

  • could not find a part of the path... [modified]
    M mehrnoosh

    hi all i create a setup file with vb.net2008 in win app in setup class i have a function that install msde with process.start instruction.i copied the msde2000 folder in bin folder in my application and use this code for setup class:

    Dim fsOutput As New FileStream(Application.StartupPath.ToString & "\MSDE2000\setup.ini", FileMode.Create, FileAccess.Write)

    my function is true but when i run setup.exe file, this error is shown:

    could not find a part of the path "c:\windows\system32\MSDE2000\setup.ini"

    my program is in drive f. but why is it looking under "c:\windows\system32" please help me :(

    M.Alizadeh

    modified on Tuesday, March 2, 2010 4:00 AM

    Visual Basic help csharp workspace

  • sqlserver is installed in system or not??? [modified]
    M mehrnoosh

    hello all how can i check that sqlserver is install in server or not??? i create a setup file that install msde. and i want if sql is installed in system msde not install... can you help me please?

    M.Alizadeh

    modified on Tuesday, February 23, 2010 3:06 AM

    Visual Basic question database sysadmin help workspace

  • error : The instance name specified is invalid
    M mehrnoosh

    thanks so much for your reply. but can you tel me how i can change instance name?? please explain more i am a beginner...

    M.Alizadeh

    Database database sql-server sysadmin help

  • error : The instance name specified is invalid
    M mehrnoosh

    Hi All When i try to install MSDE , i get the error message "The instance name specified is invalid". On the server i have installed SQL Server 2000. I am really confuse and i have searched a lot on the net. Kindly provide me with a solution as its urgent, i will be highly grateful.

    M.Alizadeh

    Database database sql-server sysadmin help

  • what is batch build?
    M mehrnoosh

    hi freinds i want to build a setup project and i need to add msde to my project. i find an article in microsoft : []http://support.microsoft.com/kb/325004[^] in paragraph 7-a writed : On the Build menu in the Microsoft Development Environment window, click Batch Build but i cant find Batch Build in Build menu... can you help me???

    M.Alizadeh

    Visual Basic question workspace com help

  • installer program
    M mehrnoosh

    what is the best Lateral program for make installer that is better and more Supple???

    M.Alizadeh

    Visual Basic question

  • add textbox to image
    M mehrnoosh

    thanks but i am a beginner in asp.net :-O can you show me how could i do this???

    M.Alizadeh

    ASP.NET question html help

  • add textbox to image
    M mehrnoosh

    yes i mean clicking on Image will display a text box in position of mouse click . and the text box must be transparent that the picture in image control must be visible under the textbox.

    M.Alizadeh

    ASP.NET question html help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups