So, i'm working at a collega and i manage all the Windows systems with SCCM. Now we have a new version of Sketchup 2017, that comes along with a new license. This license is stored in a file called "Sketchup.lic".

Now, the issue is, when uninstalling the old version, this old license file Sketchup,lic stays in C:\ProgramData\SketchUp\SketchUp 2017. Then, when i deploy the new version, the old license file isn't overwritten by the new license file, which i added in Installshield in Files/Folders.

How do i make sure the old license key file is overwritten with the new one? This is really giving me a headache. Thanks alot of the help in advance!

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1
This will be because the .LIC file will be time-stamped with the current day's date and time, meaning that the file in the MSI is older. Thus, Windows Installer's rules for non-versioned files mean that it won't be overwritten.

PS.
You're adding the .LIC using a transform, right?
Answered 01/10/2018 by: VBScab
Red Belt

Please log in to comment

Answers

0
Non versioned file get overwritten only if thoes are newer (Date and time stamp) than the installed one...
Answered 01/10/2018 by: Shrikant
White Belt

Please log in to comment
0
It worked with RemoveFile in Installshield (Direct Editor)! I'm so happy, you have no idea ;-) Thanks!
Answered 01/10/2018 by: El Pollo Diablo
White Belt

Please log in to comment
0
@Shrikant:
Non versioned file get overwritten only if thoes are newer (Date and time stamp) than the installed one...
You know this (well, you've re-worded my response, at least) and yet you don't know how to condition a component?
Answered 01/11/2018 by: VBScab
Red Belt

Please log in to comment
0
@Shrikant:
I always thought that non versioned files are only replaced when Created and Modified dates of the installed file are the same (no matter if file in the installer package is newer or older - I think that the purpose is to do not replace files modified during application run-time) as it is described here:

File Versioning Rules - Neither File Has a Version
File Versioning Rules - Neither File Has a Version with File Hash Check
FileF example here.
Answered 01/12/2018 by: rad33k
Fourth Degree Green Belt

Please log in to comment
0
If you have the MSI installed by Group Policy you can have the .LIC go out to replace the current .LIC file.
Answered 01/15/2018 by: alphabeta
Fifth Degree Brown Belt

Please log in to comment
0
@alphabeta: I'm intrigued to know how you think deploying the MSI by GP would make any difference to the way that the Windows Installer engine handles a non-versioned file. Please share.
Answered 01/16/2018 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share