I had seen that it was
shown that one can install an .msi but somehow I can not get my msi to install so I tried a known one. Tortoise SVN msi. I have in my InstallItem.cmd
echo off
start /w msiexec.exe /i "%~dp0TortoiseSVN-1.7.6.22632-x64-svn-1.7.4.msi" /qn >> log.txt 2>> err.txt
and for my app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
<startup>
<Task commandLine="InstallItem.cmd" executionContext="elevated" taskType="simple" />
</startup>
</configuration>
Since I have done start-up before and the batch file might contain an extra
character, I make sure its saved as ansi and it even runs fine when I remote in and run it manually, but somehow fails.
No log.txt or err.txt is created either, so what is going on?
I DO have the 'TortoiseSVN-1.7.6.22632-x64-svn-1.7.4.msi' included in the project as 'Copy always' with no build and like I said, the batch file runs fine when RDPed in.
Any ideas?
Oh by the way, my WorkerRole is empty really:
public override void Run()
{
// This is a sample worker implementation. Replace with your logic.
Trace.WriteLine("$projectname$ entry point called", "Information");
File.WriteAllText("StartMessages.txt", "Run started...");
while (true)
{
Thread.Sleep(10000);
Trace.WriteLine("Working", "Information");
}
}
noorbakhsh حميد نوربخش