title: Visual Studio Setup Project - Shortcuts cause installation rollback
body: <p>I have a project with lot of plugins and config files for them. Now I am doing a Visual Studio Setup Project for it. <br/>
  I don't want to add each config file manually to the setup project, so I thought to do this:</p>
  
  <ul>
  <li>create an empty zip file, say config.zip, and add it to the setup project</li>
  <li>Add a pre-build action to zip all the config files into config.zip</li>
  <li>Add a custom action that runs a vbs script that unzip config.zip to the right folder and deletes it.</li>
  </ul>
  
  <p>The vbs script is the following:</p>
  
  <pre class="lang-vb prettyprint-override"><code>sArchiveName = "Config.zip"
  sLocation = "C:\Data\Configurations"
  
  Set oFSO = CreateObject("Scripting.FileSystemObject")
  Set oShell = CreateObject("Wscript.Shell")
  
  oShell.Run """" &amp; s7zLocation &amp; "7z.exe"" x " &amp; sLocation &amp; "\" &amp; sArchiveName &amp; " -aoa -o" &amp; sLocation, 1, True
  
  '--- If I uncomment the following 2 lines, 
  '--- as I click on the shortcuts the installation rollbacks.
  '--- If I leave them the shortcuts work fine. 
  'Set f = oFSO.GetFile(sLocation &amp; "\" &amp; sArchiveName)
  'f.Delete True
  </code></pre>
  
  <p>My problem is that the shortcuts that I add in the programs menu causes the rollback of the installation. The reason is the deletion of config.zip at the end of the installation process. If I leave it everything works fine.<br/></p>
  
  <p>I have googled for a solution but cannot find anything, can someone help me?</p>