LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not delete 'temp' folder when building installer.

Solved!
Go to solution

Hello All,

When building the installer, I have no idea why this error come out recently. it is ok before. while building the single 'exe' is OK.  is there something wrong with the windows update?it seems the installer is working, but can I resolve this issue?

 

here is the error information.

 

 

Click the link below to visit the Application Builder support page. Use the following information as a reference:


CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Close.vi


The following errors and warnings were recorded during the build:

Error:
Error deleting directory.
Details:
Error deleting directory "D:\***(installerpath)\temp\".
Additional details:
Error deleting directory.
Error deleting directory "D:\***(installerpath)\temp\dp\".
Internal system error.
An internal system operation returned the error "Access is denied.".
Code:
-12

0 Kudos
Message 1 of 11
(991 Views)

It seems the deletion of this folder requires elevated privileges...

Have you tried running LabVIEW as an administrator to build your installer?

 

Regards,

Raphaël.

Message 2 of 11
(961 Views)

Hi raphschru,

Thanks for the reply. 

I did try to run with an administrator account. but it seems the same.

0 Kudos
Message 3 of 11
(902 Views)

It is strange that I got an email telling me there is a new reply from "mahakpr2". but I can't  see the reply here.

I didn't create and delete the folder manually. It is handling by the "LabVIEW installer builder". and I don't know why it happen recently.

0 Kudos
Message 4 of 11
(850 Views)

@yeah wrote:

It is strange that I got an email telling me there is a new reply from "mahakpr2". but I can't  see the reply here.


"mahakpr2" is likely a bot/spam account, which is why the advice was a bit off.

The message was deleted by a forum administrator.

0 Kudos
Message 5 of 11
(841 Views)

Hello, I am having the same problem. Out of a sudden it started returning me this error. Tried running as admin, but I get the same result as before.

0 Kudos
Message 6 of 11
(674 Views)

We're you able to get this resolved? I'm having the same issue..

0 Kudos
Message 7 of 11
(447 Views)

not yet, but some of the installer seems don't have this issue.

0 Kudos
Message 8 of 11
(126 Views)
Solution
Accepted by topic author yeah

Try building it to somewhere you KNOW you have access to, like your desktop. Sometimes Windows gets all huffy about file permissions for some reason.

 

Looking at "Controlled folder access" can be a clue sometimes, too. Windows sometimes thinks a program is acting like ransomware, and decides to not let you change something even though you should have access.

 

You can also check the Windows event viewer to see if there are any security alerts; sometimes stuff goes in there that can tell you things.

Message 9 of 11
(123 Views)

maybe this is a usecase for microsofts powertoys file-locksmith

 

Message 10 of 11
(76 Views)