Visual studio - Could not create the file .tmp Access denied


Visual studio - Could not create the file <file>.tmp Access denied.
Getting error when creating setup builds.

Usually, the issue on my machine is the following:
Mergemod.dll is not registered correctly
To resolve this problem, register Mergemod.dll again. Typically, Mergemod.dll is located in the following folder:
C:\Program Files\Common Files\Microsoft Shared\MSI Tools\Mergemod.dll

To register the Mergemod.dll, type the following command at a command prompt, and then press ENTER:
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"

Be sure to open the command prompt as an administrator.

Last modified by Mohit @ 4/6/2025 1:49:59 PM