Temp Folder

Add-in Express™ Support Service
That's what is more important than anything else

Temp Folder
 
Darren Dickerson




Posts: 17
Joined: 2014-09-24
When I add content there isn't an option to use the temp folder. Not a huge problem or anything.

When I want to use something temporarily say running a sql script that doesn't need to be installed what are my options? Is there a source directory that I can use?
Posted 17 Oct, 2014 09:21:36 Top
Dmitry Kostochko


Add-in Express team


Posts: 2887
Joined: 2004-04-05
Hi Darren,

You can add the Temp folder manually. Open the Product.wxs file, find the Directory element with Id = TARGETDIR and add the child Directory element with Id = TempFolder. For example:


<Directory Id="TARGETDIR" Name="SourceDir">

... skipped ...

  <Directory Id="TempFolder">
  </Directory>
</Directory>


Then, open the File System editor.
Posted 17 Oct, 2014 09:39:11 Top
Darren Dickerson




Posts: 17
Joined: 2014-09-24
Is that the preferred way to use files temporarily?

Thank you!
Posted 17 Oct, 2014 09:41:32 Top
Dmitry Kostochko


Add-in Express team


Posts: 2887
Joined: 2004-04-05
Hi Darren,

In terms of WiX, or to be more precisely in terms of MSI, all files are part of MSI components and they are non-temporary. I think a real temporary file is that you create by a custom action's code and then delete by a custom action's code.
Posted 17 Oct, 2014 11:05:20 Top