appdata

Inno Setup Installing to AppData\\Roaming on Windows Vista/7 and newer, but Application Data on Windows XP

☆樱花仙子☆ 提交于 2019-12-08 18:13:28
I have made several scripts for inDesign. Now I want to distribute them all in a setup file. Since inDesign scripts reside in different locations on XP and Vista (or above), I'm having some problems. My compiled setup works fine under Windows XP but doesn't copy anything to Windows 7 AppData folder. When I change folder from AppData to an absolute path, it works. [Files] Source: "Akruti Converter.jsx"; DestDir: "{userappdata}\Roaming\Adobe\InDesign\Version 8.0\en_US\Scripts\Scripts Panel\Unicode Converters\Plain"; Check: IsWindowsVista_or_7 Source: "Akruti Converter.jsx"; DestDir: "C:\Unicode

C++ app MDB in ProgramData copies to user's AppData folder when I dont want it to

╄→尐↘猪︶ㄣ 提交于 2019-12-08 13:59:30
问题 I have a C++ program which connects to an Access database via OBDC System DSN connection. That DSN is a path to the MDB in the ProgramData folder. When User A runs the app, it copies that MDB file to their AppData\Local folder and any updates to the MDB the app makes, it does to the one in their AppData folder. This is no good because if User B runs the app I want them to see the changes that User A made to the MDB. 1) Is there a way to force it to NOT copy the MDB to their AppData folder and

Where is ms-appdata?

我们两清 提交于 2019-12-07 12:04:48
问题 I am building a modern ui app and want to, with a batch file, write and periodically update data accessible though the ms-appdata:// protocol in my winjs app. I have the batch file to copy folders, but I cannot find the file path of the appdata. What is the default filepath for App1 's appdata and how can I force my app to create the folder? 回答1: ms-appdata:///[local | roaming | temp]/ maps to the StorageFolder returned from Windows.Storage.ApplicationData.Current.localFolder, roamingFolder,

Windows application data directory

牧云@^-^@ 提交于 2019-12-07 08:18:55
问题 With the environment variable %allusersprofile% I can get the directory where common settings are stored. But most programs store their settings in the sub-folder "anwendungsdaten" (German, application data). Is there a way to get the direct path to this folder? The problem is that its name is language dependent. Thanks. 回答1: Not sure about what programming language you're using, so I'll assume the basic Windows api. In XP you can call SHGetFolderPath with CSIDL_COMMON_APPDATA as a parameter.

Get AppData\Local folder for logged user

十年热恋 提交于 2019-12-07 07:18:20
问题 I'm currently using: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) To retrieve current user's AppData\Local path. The program requires elevated privileges and running it under standard user session throws a prompt requiring administrator's login credentials. Logging as an administrator (different user) apparently changes active user for the program. The returned folder path is thus administrator's and not the one the standard user uses. Expected result: C:\Users

How to download PDF from website and store in %appdata% with Visual Basic .NET

牧云@^-^@ 提交于 2019-12-06 02:00:45
I have a PDF file hosted on a website. I would like my VB.NET program to retrieve the file/download it and store it somewhere in %appdata% . This could be in a folder of it's own like %appdata%/my_program if you want. How do I achieve this in my VB.NET program? Thanks. Mehdi Valikhani You can use WebClient.DownloadFile(Url,LocalPath) for downloading your PDF file and saving in a local path on your PC. The class is in System.Net Assembly . Use this to download file: Dim WC As New System.Net.WebClient WC.DownloadFile(URL, FileName) or My.Computer.Network.DownloadFile(URL, FileName) To save it in

Where is ms-appdata?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 19:16:50
I am building a modern ui app and want to, with a batch file, write and periodically update data accessible though the ms-appdata:// protocol in my winjs app. I have the batch file to copy folders, but I cannot find the file path of the appdata. What is the default filepath for App1 's appdata and how can I force my app to create the folder? ms-appdata:///[local | roaming | temp]/ maps to the StorageFolder returned from Windows.Storage.ApplicationData.Current.localFolder, roamingFolder, and temporaryFolder. See https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage

Windows application data directory

时间秒杀一切 提交于 2019-12-05 17:28:17
With the environment variable %allusersprofile% I can get the directory where common settings are stored. But most programs store their settings in the sub-folder "anwendungsdaten" (German, application data). Is there a way to get the direct path to this folder? The problem is that its name is language dependent. Thanks. Not sure about what programming language you're using, so I'll assume the basic Windows api. In XP you can call SHGetFolderPath with CSIDL_COMMON_APPDATA as a parameter. It looks like Vista and 7 have a new set of functions that do the same thing, you'd probably want to call

How do I create directories and files within the user's AppData directory?

◇◆丶佛笑我妖孽 提交于 2019-12-04 18:37:37
So, I'm creating a game and need to create directories to store all the user's data and saves and whatnot. As you can see, I need to create a folder in the Application Data folder of the user called, "[WarDungeon]", and there, I will store other folders for such data like levels, the bin, sprites, etc. I am not too interested in working with Mac OS and Linux as I want to get the %appdata% folder working with Windows to begin with. Here's my code: public FileManage() { gamePath = System.getenv("APPDATA") + "[WarDungeon]"; gameLevelPath = System.getProperty("user.home") + "\\Local Settings\

Why oShell.Run not work

你。 提交于 2019-12-03 23:11:41
问题 This code not work set oShell = WScript.CreateObject ("WScript.shell") oShell.Run "%appdata%\Test.bat",0,False But this code work set oShell = WScript.CreateObject ("WScript.shell") oShell.Run "C:\Users\User\AppData\Roaming\Test.bat",0,False Why oShell.Run not find the file ? 回答1: @ansgar-wiechers is spot on about the ExpandEnvironmentStrings() as some of the other answers have suggested using it, but the documentation is clear; From MSDN - Run Method (Windows Script Host) The Run method