I would like to install to some target folder, but Im not sure how to do this.
I have the installer running with Installutil and it does successfully use the commit, install, and rollback mehods. I just cant direct the installation to a folder.Thanks for any help offered.
class myInstaller : AssemblyInstaller//loads an assembly and then runs all the installers<br/>
{<br/>
public void path()<br/>
{ base.Path = @"C:TEMPhelloInstallerhellobinReleasehello.exe"; }<br/>
}
public override void Install(IDictionary stateSaver)<br/>
{<br/>
base.Install(stateSaver);<br/>
StreamWriter sw= File.CreateText(@"c:TEMPInstall.txt");<br/>
sw.Write("Installing");<br/>
sw.Close();<br/>
Console.WriteLine("installing .....");<br/>
// Create an object of the AssemblyInstaller class.<br/>
myInstaller mi = new myInstaller();<br/>
mi.path();// get path where .exe is located
<br/>
<br/>
} <hr class="sig Thanks in advance for helping with my questions. Johann
View the full article
I have the installer running with Installutil and it does successfully use the commit, install, and rollback mehods. I just cant direct the installation to a folder.Thanks for any help offered.
class myInstaller : AssemblyInstaller//loads an assembly and then runs all the installers<br/>
{<br/>
public void path()<br/>
{ base.Path = @"C:TEMPhelloInstallerhellobinReleasehello.exe"; }<br/>
}
public override void Install(IDictionary stateSaver)<br/>
{<br/>
base.Install(stateSaver);<br/>
StreamWriter sw= File.CreateText(@"c:TEMPInstall.txt");<br/>
sw.Write("Installing");<br/>
sw.Close();<br/>
Console.WriteLine("installing .....");<br/>
// Create an object of the AssemblyInstaller class.<br/>
myInstaller mi = new myInstaller();<br/>
mi.path();// get path where .exe is located
<br/>
<br/>
} <hr class="sig Thanks in advance for helping with my questions. Johann
View the full article