September 16th, 2009, 12:14 AM
Create an ini file in install location
i am doing a VB.NET 2.0 Windows Application.
I want to create an ini file in the location where we are installing the application. the code that i wrote is
Private Sub Installer1_AfterInstall(ByVal sender As Object, ByVal e As System.Configuration.Install.InstallEventArgs) Handles MyBase.AfterInstall
Dim iniPath As String
Dim Asm As System.Reflection.Assembly =
Dim configPath As String
configPath = Asm.Location
iniPath = configPath & "\MyiniFile.ini"
WriteString("INSTALLDETAILS", "DATETIME", "datetime", iniPath)
but its not working.
what can be the problem with this ? anybody please help..
its very urgent
Thanks in advance
September 16th, 2009, 07:40 PM
Re: Create an ini file in install location
Wouldn't that be your INSTALLER running? Why not just include a file in setup and deployment, or even click-once?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.